This commit is contained in:
Rapandrasmus 2023-07-17 19:10:14 +02:00 committed by GitHub
parent 1753a25947
commit 242b810282
2 changed files with 2 additions and 1 deletions

View file

@ -92,6 +92,7 @@ namespace HeavenStudio.Games.Scripts_WizardsWaltz
{
yield return new WaitForSeconds(Conductor.instance.secPerBeat * game.beatInterval / 2f);
Destroy(gameObject);
game.currentPlants.Remove(this);
}
}
}

View file

@ -65,7 +65,7 @@ namespace HeavenStudio.Games
public float zRange = 5;
public float yRange = 0.5f;
public float plantYOffset = -2f;
private List<Plant> currentPlants = new();
[NonSerialized] public List<Plant> currentPlants = new();
public static WizardsWaltz instance;