예제 #1
0
        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);
        }
예제 #2
0
 public static void RemoveEvent(GameEntity Entity, Action <EventSystemData> Callback, EventSystemType Type = EventSystemType.Click)
 {
     EventHelper.RemoveEvent(Entity, Callback, Type);
 }
예제 #3
0
 public static void RemoveEvent(Transform Obj, Action <EventSystemData> Callback, EventSystemType Type = EventSystemType.Click)
 {
     EventHelper.RemoveEvent(Obj, Callback, Type);
 }