static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.UI.Slider.SliderEvent o; o = new UnityEngine.UI.Slider.SliderEvent(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int constructor(IntPtr l) { UnityEngine.UI.Slider.SliderEvent o; o = new UnityEngine.UI.Slider.SliderEvent(); pushObject(l, o); return(1); }
void Start() { slider = GetComponent <UnityEngine.UI.Slider>(); UnityEngine.UI.Slider.SliderEvent onValueChanged = new UnityEngine.UI.Slider.SliderEvent(); onValueChanged.AddListener(SetVolume); slider.onValueChanged = onValueChanged; updateSlider(); }
static public int constructor(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent o; o = new UnityEngine.UI.Slider.SliderEvent(); pushValue(l, o); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int RemoveAllListeners(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); self.RemoveAllListeners(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
public static int constructor(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent o; o=new UnityEngine.UI.Slider.SliderEvent(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
static public int constructor(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent o; o = new UnityEngine.UI.Slider.SliderEvent(); pushValue(l, o); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static new public int ToString(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); var ret = self.ToString(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { LuaDLL.lua_remove(l, 1); UnityEngine.UI.Slider.SliderEvent o; if (matchType(l, 1)) { o = new UnityEngine.UI.Slider.SliderEvent(); pushObject(l, o); return(1); } LuaDLL.luaL_error(l, "New object failed."); return(0); }
public static int constructor(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent o; o=new UnityEngine.UI.Slider.SliderEvent(); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
static public int GetPersistentEventCount(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); var ret = self.GetPersistentEventCount(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int RemoveListener(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); UnityEngine.Events.UnityAction <System.Single> a1; LuaDelegation.checkDelegate(l, 2, out a1); self.RemoveListener(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int Invoke(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); System.Single a1; checkType(l, 2, out a1); self.Invoke(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static new public int Equals(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); System.Object a1; checkType(l, 2, out a1); var ret = self.Equals(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int QPYX_set_onValueChanged_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Slider QPYX_obj_YXQP = (UnityEngine.UI.Slider)QPYX_o_YXQP; UnityEngine.UI.Slider.SliderEvent QPYX_arg0_YXQP = (UnityEngine.UI.Slider.SliderEvent)ToLua.CheckObject <UnityEngine.UI.Slider.SliderEvent>(L_YXQP, 2); QPYX_obj_YXQP.onValueChanged = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onValueChanged on a nil value")); } }
static int QPYX_get_onValueChanged_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Slider QPYX_obj_YXQP = (UnityEngine.UI.Slider)QPYX_o_YXQP; UnityEngine.UI.Slider.SliderEvent QPYX_ret_YXQP = QPYX_obj_YXQP.onValueChanged; ToLua.PushObject(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onValueChanged on a nil value")); } }
static public int GetPersistentTarget(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); var ret = self.GetPersistentTarget(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int SetPersistentListenerState(IntPtr l) { try { UnityEngine.UI.Slider.SliderEvent self = (UnityEngine.UI.Slider.SliderEvent)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); UnityEngine.Events.UnityEventCallState a2; checkEnum(l, 3, out a2); self.SetPersistentListenerState(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int set_onValueChanged(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Slider obj = (UnityEngine.UI.Slider)o; UnityEngine.UI.Slider.SliderEvent arg0 = (UnityEngine.UI.Slider.SliderEvent)ToLua.CheckObject <UnityEngine.UI.Slider.SliderEvent>(L, 2); obj.onValueChanged = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onValueChanged on a nil value")); } }
static int get_onValueChanged(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Slider obj = (UnityEngine.UI.Slider)o; UnityEngine.UI.Slider.SliderEvent ret = obj.onValueChanged; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onValueChanged on a nil value")); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.UI.Slider.SliderEvent(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Slider.SliderEvent constructor!")); }
static StackObject *set_onValueChanged_17(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.Slider.SliderEvent value = (UnityEngine.UI.Slider.SliderEvent) typeof(UnityEngine.UI.Slider.SliderEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.Slider instance_of_this_method; instance_of_this_method = (UnityEngine.UI.Slider) typeof(UnityEngine.UI.Slider).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.onValueChanged = value; return(__ret); }
static StackObject *Add_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Action <System.Single> @action = (System.Action <System.Single>) typeof(System.Action <System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.Slider.SliderEvent @SliderValueChangedEvent = (UnityEngine.UI.Slider.SliderEvent) typeof(UnityEngine.UI.Slider.SliderEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ETModel.ActionHelper.Add(@SliderValueChangedEvent, @action); return(__ret); }
static int _CreateUnityEngine_UI_Slider_SliderEvent(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { UnityEngine.UI.Slider.SliderEvent obj = new UnityEngine.UI.Slider.SliderEvent(); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.UI.Slider.SliderEvent.New"); } } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } }
static int _CreateUnityEngine_UI_Slider_SliderEvent(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { UnityEngine.UI.Slider.SliderEvent obj = new UnityEngine.UI.Slider.SliderEvent(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.UI.Slider.SliderEvent.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void Start() { UnityEngine.UI.Slider.SliderEvent myEvent = new UnityEngine.UI.Slider.SliderEvent(); myEvent.AddListener(OnValueChanged); GetComponent <UnityEngine.UI.Slider>().onValueChanged = myEvent; }