private void StartConversationEventListener(Hashtable h)
    {
        string npcKey = NPCCharacterDialog.GetKeyFromHashtable(h);

        conversation = StoryManager.instance.GetNPCSpeech(npcKey).StartConversation();
        InitialiseUIElements(conversation);
    }
예제 #2
0
 void OnTriggerExit(Collider other)
 {
     if (other.tag == Constants.PLAYER_TAG)
     {
         button.gameObject.SetActive(false);
         NPCCharacterDialog.StopSpeakingToNpc();
     }
 }
예제 #3
0
 public void OnClickedShowSpeech()
 {
     NPCCharacterDialog.SpeakToNpc(key);
     button.gameObject.SetActive(false);
     EventManager.StartListening(Constants.EVENT_NPC_STOP_SPEAK, ShowButton);
 }