Fix new berries not despawning on reset

This commit is contained in:
2025-09-04 19:28:05 -07:00
parent 2c091f444b
commit 0d754b9af9

View File

@@ -623,6 +623,8 @@ public class GamePlayer : MonoBehaviour
.Concat(GameObject.FindGameObjectsWithTag("UltraBerry")) .Concat(GameObject.FindGameObjectsWithTag("UltraBerry"))
.Concat(GameObject.FindGameObjectsWithTag("SpeedyBerry")) .Concat(GameObject.FindGameObjectsWithTag("SpeedyBerry"))
.Concat(GameObject.FindGameObjectsWithTag("CoinBerry")) .Concat(GameObject.FindGameObjectsWithTag("CoinBerry"))
.Concat(GameObject.FindGameObjectsWithTag("RandomBerry"))
.Concat(GameObject.FindGameObjectsWithTag("AntiBerry"))
.ToArray(); .ToArray();
foreach (GameObject berry in allberries) foreach (GameObject berry in allberries)
{ {