public static void TriggerIntIntEvent(string eventName, int input1, int input2) { UnityIntIntEvent thisEvent = null; if (instance.intIntEventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.Invoke(input1, input2); } }
public static void StopListeningTypeIntInt(string eventName, UnityAction <int, int> listener) { if (eventManager == null) { return; } UnityIntIntEvent thisEvent = null; if (instance.intIntEventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.RemoveListener(listener); } }
//--End Int Event methods-- //Int Int based event setup public static void StartListeningTypeIntInt(string eventName, UnityAction <int, int> listener) { UnityIntIntEvent thisEvent = null; if (instance.intIntEventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.AddListener(listener); } else { thisEvent = new UnityIntIntEvent(); thisEvent.AddListener(listener); instance.intIntEventDictionary.Add(eventName, thisEvent); } }
public Subtask() { id = 0; description = ""; status = SubtaskStatus.WAITING; parentTask = null; dependsOn = new List <Subtask>(); mode = SubtaskMode.MANUAL; goals = new List <Condition>(); action = null; allPreviousSubtasksCompleted = false; goalsSatisfied = 0; OnReady = new UnityIntIntEvent(); OnCompleted = new UnityIntIntEvent(); }