Beispiel #1
0
 private void Update()
 {
     //Check time to normal speed
     if (timeToNormalSpeed != 0 && !PauseWaiter.IsPauseMod())
     {
         timeToNormalSpeed -= (UFloat)Time.unscaledDeltaTime;
         //Stop speedupEffect, if it is the time
         if (timeToNormalSpeed == 0 && !EndGameWaiter.IsGameOver())
         {
             AudioManager.Play(AudioName.EffectSpeedupDeactivated);
             Time.timeScale = 1;
         }
     }
 }
Beispiel #2
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape) && !EndGameWaiter.IsGameOver())
     {
         if (pauseMod == false)
         {
             pauseMod = true;
             SceneManager.LoadScene("PauseMenu", LoadSceneMode.Additive);
         }
         else
         {
             pauseCanceled.Invoke();
         }
     }
 }