public void Init() { //.. _instance = this; _isPaused = false; _cameraRaycaster.Init(); _puzzleController.Init(); _dialogueUI.Init(_player.GetPlayerConversant); onPlayerInteractEvent += _pcController.OnPlayerInteracted; onPlayerInteractEvent += _puzzleController.OnPlayerInteracted; }
public void StartConversation() { currentTalker.StartTalking(); inDialogue = true; dialogueTree = currentTalker.LoadTree(); if (dialogueUI == null) { //There's only one DilaogueUI, so no worries. dialogueUI = FindObjectOfType <DialogueUI>(); dialogueUI.Init(this); } dialogueUI.ConversationStarted(); dialogueUI.DrawNode(dialogueTree.Root.Content); }