Пример #1
0
 public void OnStateChanged(GameState previous, GameState current)
 {
     switch (current)
     {
     case GameState.Menu:
     case GameState.DeathScreen:
         int count = active.Count;
         for (int i = 0; i < count; i++)
         {
             Pod pod = active[0];
             pod.Kill();
             CleanPod(pod);
         }
         break;
     }
 }