private void Update()
    {
        if (!InputManager.Get_KeyEscape)
        {
            return;
        }

        if (playerData.IsInConversation)
        {
            return;
        }

        if (toggleUI.Get_PausePanel.activeInHierarchy)
        {
            toggleUI.TogglePauseWindow(false);
            isPaused = false;
            CursorLockState.ToggleCursorLockState(CursorLockMode.Locked);
            return;
        }
        toggleUI.TogglePauseWindow(true);
        isPaused = true;
        CursorLockState.ToggleCursorLockState(CursorLockMode.None);
        CursorViewState.SetCursorTexture(CursorViewState.Get_Normal);
    }
Exemple #2
0
 public void OnPointerEnter(PointerEventData data)
 {
     CursorViewState.SetCursorTexture(CursorViewState.Get_Hover);
 }
Exemple #3
0
 public void OnPointerExit(PointerEventData data)
 {
     CursorViewState.SetCursorTexture(CursorViewState.Get_Normal);
 }