diff --git a/Assets/Prefabs/Notification.prefab b/Assets/Prefabs/Notification.prefab index 040e507..139a20d 100644 --- a/Assets/Prefabs/Notification.prefab +++ b/Assets/Prefabs/Notification.prefab @@ -13,7 +13,7 @@ GameObject: - component: {fileID: 1224870225590696388} m_Layer: 5 m_Name: Notification - m_TagString: Untagged + m_TagString: Notification m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 diff --git a/Assets/Scripts/Game/LevelEnder.cs b/Assets/Scripts/Game/LevelEnder.cs index 75626e8..ae5affe 100644 --- a/Assets/Scripts/Game/LevelEnder.cs +++ b/Assets/Scripts/Game/LevelEnder.cs @@ -144,11 +144,17 @@ public class LevelEnder : MonoBehaviour var yummies = GameObject.FindGameObjectsWithTag("Yummy"); var multipliers = GameObject.FindGameObjectsWithTag("Multiplier"); var shark = GameObject.FindGameObjectWithTag("Shark"); + var notifications = GameObject.FindGameObjectsWithTag("Notification"); foreach (var yummy in yummies) { Destroy(yummy); } + + foreach (var notification in notifications) + { + Destroy(notification); + } foreach (var multiplier in multipliers) { diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index 869a1ad..f461441 100644 --- a/ProjectSettings/TagManager.asset +++ b/ProjectSettings/TagManager.asset @@ -18,6 +18,7 @@ TagManager: - Yummy - Cake - WorldFiller + - Notification layers: - Default - TransparentFX