public DialogueNode AddHandler(DialogueEffectHandler handler) { if (lastEffect == null) { throw new Exception("Error while adding handler: no effect added yet!"); } lastEffect.AddHandler(handler); return(this); }
public void AddHandler(DialogueEffectHandler handler) { handlers.Add(handler); }