Пример #1
0
 public void EscapeRoom()
 {
     blackBlend.SetBlack(true);
     inventoryUi.SetActive(false);
     playerAccessibility.LockPlayer(false);
     afterBlackExecuter.Execute();
 }
Пример #2
0
    void Pause()
    {
        if (player.GetPlayerLocked())
        {
            playerLockedBeforePause = true;
        }
        else
        {
            player.LockPlayer();
            playerLockedBeforePause = false;
        }

        pauseMenuUI.SetActive(true);
        Time.timeScale      = 0f;
        AudioListener.pause = true;
        gameIsPaused        = true;
    }