public static void TriggerEvent(string eventName, object tag = null) { TagEvent thisEvent = null; if (Instance.eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(tag); } }
public void Input(SO value) { if (list.Contains(value)) { return; } list.Add(value); OnAdd.Invoke(value); }
public void Transition(int index) { node = node.responses[index].node; RelayNode.Invoke(node); foreach (var item in node.events) { RelayEvent.Invoke(item); } }
public void Tag(Token tag) { events.Enqueue(new TagEvent(tag.Content, e => TagEvent.Invoke(this, new EventArgs <string>(tag.Content)))); }
private void End() { OnEnd.Invoke(id); }