Beispiel #1
0
 void OnDisable()
 {
     foreach (UIButton b in buttons)
     {
         EventDelegateUtil.RemoveCallback <UIButton>(b.onClick, this, OnButtonClick, b);
     }
 }
Beispiel #2
0
 void OnDisable()
 {
     foreach (UIToggle t in toggles)
     {
         EventDelegateUtil.RemoveCallback <UIToggle>(t.onChange, this, OnChange, t);
     }
 }
        public void Remove(GameObject o)
        {
            toggleObj = toggleObj.Remove(o);
            UIToggle t = o.GetComponent <UIToggle>();

            if (t != null)
            {
                EventDelegateUtil.RemoveCallback <UIToggle>(t.onChange, this, OnToggleChange, t);
            }
        }
Beispiel #4
0
        private void OnTabRemoved(Object o, int index)
        {
            UITab tab = o as UITab;

            if (tab == null || tab.tabButton == null)
            {
                return;
            }
            EventDelegateUtil.RemoveCallback <UITab>(tab.tabButton.onClick, tabHandler, tabHandler.OnClickTab, tab);
        }