public void AddUIEventListener(GameObject obj, eUIEventType type, UIEventListener.EventDelegate callBack) { if (obj == null) { return; } UIEventListener.Get(obj).AddEventListener(type, callBack); }
public void RemoveUIEventListener(string obj_name, eUIEventType type, UIEventListener.EventDelegate callBack) { RemoveUIEventListener(GameObjectUtils.GetChildWithName(obj_name, transform).gameObject, type, callBack); }