static int SetValueChangeUpdate(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Common.UI.Components.SliderValueChangeAction obj = (Common.UI.Components.SliderValueChangeAction)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.SliderValueChangeAction)); System.Action <float> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action <float>)ToLua.CheckObject(L, 2, typeof(System.Action <float>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action <float>), func) as System.Action <float>; } Common.UI.Components.SliderValueChangeAction o = obj.SetValueChangeUpdate(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CancelAction(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Common.UI.Components.SliderValueChangeAction obj = (Common.UI.Components.SliderValueChangeAction)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.SliderValueChangeAction)); obj.CancelAction(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static SliderValueChangeAction Get(GameObject go) { if (go == null) { return(null); } SliderValueChangeAction sliderAction = go.GetComponent <SliderValueChangeAction>(); if (sliderAction == null) { sliderAction = go.AddComponent <SliderValueChangeAction>(); } return(sliderAction); }
static int Get(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.GameObject)); Common.UI.Components.SliderValueChangeAction o = Common.UI.Components.SliderValueChangeAction.Get(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int StartValueChangeActionTo(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Common.UI.Components.SliderValueChangeAction obj = (Common.UI.Components.SliderValueChangeAction)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.SliderValueChangeAction)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); Common.UI.Components.SliderValueChangeAction o = obj.StartValueChangeActionTo(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }