Пример #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);
 }
Пример #2
0
 public void Awake()
 {
     CursorManager.ActivateCursor();
 }