コード例 #1
0
    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);
    }
コード例 #2
0
 public void OnPointerEnter(PointerEventData data)
 {
     CursorViewState.SetCursorTexture(CursorViewState.Get_Hover);
 }
コード例 #3
0
 public void OnPointerExit(PointerEventData data)
 {
     CursorViewState.SetCursorTexture(CursorViewState.Get_Normal);
 }