public void EndConversation() { Debug.Log("END CONVERSATION"); player.SetActive(true); this.conversationTree.dialogueCamera.SetActive(false); this.conversationTree = null; Toggle(false); UnityEngine.Cursor.lockState = CursorLockMode.Locked; UnityEngine.Cursor.visible = false; repaint = false; }
public void SetConversation(ConversationTree conversationTree) { if (player == null) { player = GameObject.FindWithTag("Player"); } player.SetActive(false); this.conversationTree = conversationTree; this.conversationTree.dialogueCamera.SetActive(true); Toggle(true); UnityEngine.Cursor.lockState = CursorLockMode.None; UnityEngine.Cursor.visible = true; repaint = true; timer = 0f; }