Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Dog" && other.GetComponent <DogAttributes>().heldSkull == skullName && !used)
     {
         messenger.StartDialogue(text);
         used = true;
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         if (timesSpokenTo < speeches.Length)
         {
             messenger.StartDialogue(speeches[timesSpokenTo]);
         }
         timesSpokenTo++;
     }
 }