Beispiel #1
0
 public void HandleOnExplosionEnd()
 {
     StateManager.Instance.State = GameState.Winner;
     delay.Invoke(endTime, () => {
         NewPlanet();
     });
 }
Beispiel #2
0
 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;
     });
 }