public void HandleOnExplosionEnd() { StateManager.Instance.State = GameState.Winner; delay.Invoke(endTime, () => { NewPlanet(); }); }
public void Set(int amount) { delay.Invoke(0.01f, () => { if (amount >= maxAmount) { Reset(); } else { for (int i = maxAmount; i > amount; i--) { healthLights[i].State = false; } } this.amount = amount; }); }