예제 #1
0
 public void BackToMenu()
 {
     SceneManager.LoadScene("MainMenu");
     CursorManager.ChangeCursorToMenu();
     loadingManager.LoadJustAnimation();
     mainCanva.SetActive(false);
 }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetButtonDown("Menu"))
     {
         if (!mainCanva.activeSelf)
         {
             CursorManager.ChangeCursorToMenu();
             Time.timeScale = 0f;
             mainCanva.SetActive(true);
             StartCoroutine("CanClose");
         }
         if (mainCanva.activeSelf && !justOpenSettings)
         {
             ResumeGame();
         }
     }
 }