Exemple #1
0
 public void PauseSimulation()
 {
     if (!IsRunning)
     {
         PauseToggle.SetIsOnWithoutNotify(false);
     }
     else
     {
         IsPausing = !IsPausing;
     }
 }
Exemple #2
0
 public void StopSimulation()
 {
     if (!IsRunning)
     {
         return;
     }
     IsRunning = IsPausing = false;
     PlayToggle.SetIsOnWithoutNotify(false);
     PauseToggle.SetIsOnWithoutNotify(false);
     StopToggle.SetIsOnWithoutNotify(false);
     TheBoard.Stop();
     foreach (var kv in GOPhotons)
     {
         Destroy(kv.Value);
     }
     GOPhotons.Clear();
 }