public void StopListening(UIEvents.Type eventName, Action <string> listener) { if (eventDictionary == null) { Init(); } Action <string> thisEvent = null; if (eventDictionary.ContainsKey(eventName)) { thisEvent = eventDictionary[eventName]; thisEvent -= listener; } }
public void TriggerEvent(UIEvents.Type eventName, string message = "") { if (eventDictionary == null) { Init(); } Action <string> thisEvent = null; if (eventDictionary.ContainsKey(eventName)) { thisEvent = eventDictionary[eventName]; thisEvent(message); } }
protected void StartListenting(UIEvents.Type type, System.Action <string> listener) { _HUD.StartListening(type, listener); }
protected void TriggerHUDEvent(UIEvents.Type type, string message = "") { _HUD.TriggerEvent(type, message); }
public void ListenForHUDEvent(UIEvents.Type type, System.Action <string> listen) { _HUD.StartListening(type, listen); }
/// <summary> /// Trigger a main menu ui event /// </summary> /// <param name="type"></param> protected void TriggerEvent(UIEvents.Type type, string message = "") { _Observer.TriggerEvent(type, message); }
public void TriggerUIEvent(UIEvents.Type type) { _MainMenuObserver.TriggerEvent(type); }