This commit is contained in:
Rapandrasmus 2023-07-17 19:10:14 +02:00 committed by GitHub
parent 52ee46eebd
commit 516c245e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;