Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!triggered && other.CompareTag("Player"))
     {
         dialogueManager.StartConversation(encounterConversation);
         triggered = true;
     }
 }
Esempio n. 2
0
 //HACK
 private void OnTriggerEnter(Collider other)
 {
     if (!trigger.Triggered && other.GetComponent <CharacterController>() != null)
     {
         // Add this conversation's actors to manager
         foreach (KeyValuePair <string, Dialogue.DialogueActor> entry in m_actorDict)
         {
             dialogueManager.actors[entry.Key] = entry.Value;
         }
         dialogueManager.StartConversation(conversation);
         trigger.Triggered = true;
         trigger.Save();
     }
 }