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); }
public void OnPointerEnter(PointerEventData data) { CursorViewState.SetCursorTexture(CursorViewState.Get_Hover); }
public void OnPointerExit(PointerEventData data) { CursorViewState.SetCursorTexture(CursorViewState.Get_Normal); }