Beispiel #1
0
    public static void TriggerEvent(string eventName, object tag = null)
    {
        TagEvent thisEvent = null;

        if (Instance.eventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.Invoke(tag);
        }
    }
Beispiel #2
0
 public void Input(SO value)
 {
     if (list.Contains(value))
     {
         return;
     }
     list.Add(value);
     OnAdd.Invoke(value);
 }
Beispiel #3
0
        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))));
 }
Beispiel #5
0
 private void End()
 {
     OnEnd.Invoke(id);
 }