public void Broadcast(StageNine.Events.EventType eType) { foreach (var listener in eventListeners) { listener.HandleEvent(eType); } }
public void HandleEvent(StageNine.Events.EventType eType) { if (eType == StageNine.Events.EventType.RESIZE_SCREEN) { ScalePanel(); } }
public void HandleEvent(StageNine.Events.EventType eType) { if (eType == StageNine.Events.EventType.UI_ECONOMY_CHECK) { Debug.Log("[UIEconomyTracker:HandleEvent] event recieved."); OnEconomyCheck(); } }