Beispiel #1
0
        /// <summary>
        /// 删除单击事件
        /// </summary>
        public void RemoveClick(Button button)
        {
            if (button == null)
            {
                return;
            }
            LuaEventData evdata = null;

            if (luaEvents.TryGetValue(button, out evdata))
            {
                if (evdata != null)
                {
                    evdata.Dispose();
                }
                luaEvents.Remove(button);
            }
            button.onClick.RemoveAllListeners();
        }
Beispiel #2
0
        public void RemoveToggleClick(Toggle toggle)
        {
            if (toggle == null)
            {
                return;
            }
            LuaEventData evdata = null;

            if (luaEvents.TryGetValue(toggle, out evdata))
            {
                if (evdata != null)
                {
                    evdata.Dispose();
                }
                luaEvents.Remove(toggle);
            }
            toggle.onValueChanged.RemoveAllListeners();
        }
Beispiel #3
0
        public void RemoveEndEdit(TMP_InputField input)
        {
            if (input == null)
            {
                return;
            }
            LuaEventData evdata = null;

            if (luaEvents.TryGetValue(input, out evdata))
            {
                if (evdata != null)
                {
                    evdata.Dispose();
                }
                luaEvents.Remove(input);
            }
            input.onEndEdit.RemoveAllListeners();
        }