TO SQUASH: Clean up notifications on level end.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ TagManager:
|
||||
- Yummy
|
||||
- Cake
|
||||
- WorldFiller
|
||||
- Notification
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
||||
Reference in New Issue
Block a user