static int SetSelect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); CC.UI.TabGroup obj = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup"); CC.UI.TabButton arg0 = (CC.UI.TabButton)LuaScriptMgr.GetUnityObject(L, 2, typeof(CC.UI.TabButton)); obj.SetSelect(arg0); return(0); }
static int GetSelect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); CC.UI.TabGroup obj = (CC.UI.TabGroup)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CC.UI.TabGroup"); CC.UI.TabButton o = obj.GetSelect(); LuaScriptMgr.Push(L, o); return(1); }
void Update() { if (_select != select || runUpdate) { runUpdate = false; if (_select != null) { _select.IsSelect = false; } _select = select; if (_select != null) { _select.IsSelect = true; } if (onChange != null) { onChange(_select); } m_OnValueChange.Invoke(_select); } }