コード例 #1
0
    public void Init()
    {
        //..
        _instance = this;
        _isPaused = false;

        _cameraRaycaster.Init();
        _puzzleController.Init();
        _dialogueUI.Init(_player.GetPlayerConversant);

        onPlayerInteractEvent += _pcController.OnPlayerInteracted;
        onPlayerInteractEvent += _puzzleController.OnPlayerInteracted;
    }
コード例 #2
0
 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);
 }