Beispiel #1
0
 public void Pause()
 {
     pause          = !pause;
     Time.timeScale = pause ? 0 : 1;
     if (pause)
     {
         Debug.Log("oui");
         foreach (GameObject gO in activeByDefault)
         {
             gO.SetActive(true);
         }
         foreach (GameObject gO in notActiveByDefault)
         {
             gO.SetActive(false);
         }
         CursorManager.ActivateCursor();
     }
     else
     {
         CursorManager.DeactivateCursor();
     }
     menu.SetActive(pause);
 }
Beispiel #2
0
 private void Start()
 {
     CursorManager.DeactivateCursor();
 }