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