public static void RemoveEvent(Transform Obj, UnityAction Callback, EventSystemType Type = EventSystemType.Click) { if (LiteConfigure.EnableButtonClick && Type == EventSystemType.Click) { var Btn = Obj?.GetComponent <Button>(); if (Btn != null) { Btn.onClick.RemoveListener(Callback); return; } } EventHelper.RemoveEvent(Obj, Callback, Type); }
public static void RemoveEvent(GameEntity Entity, Action <EventSystemData> Callback, EventSystemType Type = EventSystemType.Click) { EventHelper.RemoveEvent(Entity, Callback, Type); }
public static void RemoveEvent(Transform Obj, Action <EventSystemData> Callback, EventSystemType Type = EventSystemType.Click) { EventHelper.RemoveEvent(Obj, Callback, Type); }