Пример #1
0
    private void ShowGameOverScreen()
    {
        Debug.Log("Showing Game Over Screen");
        if (gameOverScreenController)
        {
            gameOverScreenController.Show(() =>
            {
                Time.timeScale = 0;

                StaticTools.UpdateCursorLock(false);
            });
        }
    }
 void OnDisable()
 {
     SecurityCameraUI.SetActive(false);
     StaticTools.UpdateCursorLock(false);
 }
 void OnEnable()
 {
     SecurityCameraUI.SetActive(true);
     StaticTools.UpdateCursorLock(true);
 }