Esempio n. 1
0
 public void GamePaused()
 {
     if (gamePaused == false)
     {
         faceController.PauseFace();
         gamePaused = true;
         gamePausedCanvas.SetActive(true);
         gamePausedTextCanvas.SetActive(true);
         animator.Play("Pause active");
         Time.timeScale = 0f;
         fadeBackground.SetActive(true);
     }
     else
     {
         gamePaused = false;
         gamePausedCanvas.SetActive(false);
         gamePausedTextCanvas.SetActive(false);
         animator.Play("Pause idle");
         Time.timeScale = 1f;
         faceController.ResumeFace();
         fadeBackground.SetActive(false);
     }
 }