public void SetConsequenceAction(Action consequenceAction, bool afterDialogue) { GameObject consequenceActor = consequenceAction.GetActor(); foreach (DialogueAction dialogueAction in speakers){ GameObject dialogueActor = dialogueAction.GetActor(); if (dialogueActor == consequenceActor){ dialogueAction.SetConsequenceAction(consequenceAction, afterDialogue); } } }