private void DisableUI()
 {
     cameraScript.LockCursor();
     Cursor.visible       = false;
     cameraScript.enabled = true;
     uiActive             = false;
     difficultyUI.SetActive(false);
     playerScript.canFlash = true;
     interactText.text     = "Press \"E\" to interact.";
 }
Esempio n. 2
0
 public void pauseGame()
 {
     if (isPaused) /// paused -> play
     {
         isPaused       = false;
         Time.timeScale = 1;
         //Debug.Log("IS Playing");
         pausePanel.gameObject.SetActive(false);
         PL.LockCursor();
     }
     else /// play -> pause
     {
         isPaused       = true;
         Time.timeScale = 0;
         //Debug.Log("IS PAUSED");
         pausePanel.gameObject.SetActive(true);
         PL.UnLockCursor();
     }
 }
Esempio n. 3
0
    public void On_Pausa()
    {
        if (!pausado)
        {
            CanvasPartida.SetActive(false);
            sJugadorLook.UnlockCursor();
            sJugadorLook.enabled = false;
            sPlayerMove.enabled  = false;
            Panel.SetActive(true);
            pausado = true;
        }
        else
        {
            CanvasPartida.SetActive(true);
            PartidasGuardadas.SetActive(false);
            GuardarCambios.SetActive(false);

            sJugadorLook.enabled = true;
            sPlayerMove.enabled  = true;
            sJugadorLook.LockCursor();
            Panel.SetActive(false);
            pausado = false;
        }
    }