Пример #1
0
 private void PausePlay()
 {
     if (_timeloop == null)
     {
         return;
     }
     if (IsPaused)
     {
         _timeloop.StartTime();
         IsPaused = false;
     }
     else
     {
         _timeloop.PauseTime();
         IsPaused = true;
     }
 }
Пример #2
0
 private void PausePlay()
 {
     if (_timeloop == null)
     {
         return;
     }
     if (IsPaused)
     {
         _timeloop.StartTime();
         IsPaused = false;
     }
     else
     {
         _timeloop.PauseTime();
         IsPaused = true;
     }
     OnPropertyChanged(nameof(IsPaused));
 }