This commit is contained in:
Rapandrasmus 2023-07-17 19:10:14 +02:00 committed by minenice55
parent 81368649cc
commit fdeb4c448b
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;