Exemplo n.º 1
0
        public static void Activate(EventNames eventName, object obj)
        {
            string eventNameString = eventName.ToString();

            if (Events.ContainsKey(eventNameString))
            {
                Events[eventNameString].Activate(obj);
            }
        }
Exemplo n.º 2
0
        public static void AddEvent(EventNames eventName, APIEventList.EventAction f)
        {
            string eName = eventName.ToString();

            if (!Events.ContainsKey(eName))
            {
                Events[eName] = new APIEventList(eName);
            }
            Events[eName].E += f;
        }
Exemplo n.º 3
0
 public GameEvent(EventNames name, UnityAction action)
 {
     Name   = name.ToString();
     Action = action;
 }