TO SQUASH: Clean up notifications on level end.

This commit is contained in:
2026-08-28 14:06:21 -04:00
parent cb1db7c8b2
commit 87eec9814e
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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
+6
View File
@@ -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)
{
+1
View File
@@ -18,6 +18,7 @@ TagManager:
- Yummy
- Cake
- WorldFiller
- Notification
layers:
- Default
- TransparentFX