public void CloseDialog() { canvasObject.SetActive(false); DialogCamera.Instance.StopDialog(); Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; if (dialogSource.isPlaying) { dialogSource.Stop(); } dialogTrigger.SetDialogState(false); }