#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class UITweenerWrap { public static void __Register(RealStatePtr L) { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UITweener); Utils.BeginObjectRegister(type, L, translator, 0, 11, 14, 12); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOnFinished", _m_SetOnFinished); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnFinished", _m_AddOnFinished); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveOnFinished", _m_RemoveOnFinished); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sample", _m_Sample); Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayForward", _m_PlayForward); Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayReverse", _m_PlayReverse); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetToBeginning", _m_ResetToBeginning); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Toggle", _m_Toggle); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetStartToCurrentValue", _m_SetStartToCurrentValue); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEndToCurrentValue", _m_SetEndToCurrentValue); Utils.RegisterFunc(L, Utils.GETTER_IDX, "amountPerDelta", _g_get_amountPerDelta); Utils.RegisterFunc(L, Utils.GETTER_IDX, "tweenFactor", _g_get_tweenFactor); Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); Utils.RegisterFunc(L, Utils.GETTER_IDX, "method", _g_get_method); Utils.RegisterFunc(L, Utils.GETTER_IDX, "style", _g_get_style); Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationCurve", _g_get_animationCurve); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreTimeScale", _g_get_ignoreTimeScale); Utils.RegisterFunc(L, Utils.GETTER_IDX, "delay", _g_get_delay); Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); Utils.RegisterFunc(L, Utils.GETTER_IDX, "steeperCurves", _g_get_steeperCurves); Utils.RegisterFunc(L, Utils.GETTER_IDX, "tweenGroup", _g_get_tweenGroup); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFinished", _g_get_onFinished); Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventReceiver", _g_get_eventReceiver); Utils.RegisterFunc(L, Utils.GETTER_IDX, "callWhenFinished", _g_get_callWhenFinished); Utils.RegisterFunc(L, Utils.SETTER_IDX, "tweenFactor", _s_set_tweenFactor); Utils.RegisterFunc(L, Utils.SETTER_IDX, "method", _s_set_method); Utils.RegisterFunc(L, Utils.SETTER_IDX, "style", _s_set_style); Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationCurve", _s_set_animationCurve); Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreTimeScale", _s_set_ignoreTimeScale); Utils.RegisterFunc(L, Utils.SETTER_IDX, "delay", _s_set_delay); Utils.RegisterFunc(L, Utils.SETTER_IDX, "duration", _s_set_duration); Utils.RegisterFunc(L, Utils.SETTER_IDX, "steeperCurves", _s_set_steeperCurves); Utils.RegisterFunc(L, Utils.SETTER_IDX, "tweenGroup", _s_set_tweenGroup); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFinished", _s_set_onFinished); Utils.RegisterFunc(L, Utils.SETTER_IDX, "eventReceiver", _s_set_eventReceiver); Utils.RegisterFunc(L, Utils.SETTER_IDX, "callWhenFinished", _s_set_callWhenFinished); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "current", _g_get_current); Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "current", _s_set_current); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { return LuaAPI.luaL_error(L, "UITweener does not have a constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetOnFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { EventDelegate.Callback _del = translator.GetDelegate(L, 2); gen_to_be_invoked.SetOnFinished( _del ); return 0; } if(gen_param_count == 2&& translator.Assignable(L, 2)) { EventDelegate _del = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); gen_to_be_invoked.SetOnFinished( _del ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UITweener.SetOnFinished!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddOnFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { EventDelegate.Callback _del = translator.GetDelegate(L, 2); gen_to_be_invoked.AddOnFinished( _del ); return 0; } if(gen_param_count == 2&& translator.Assignable(L, 2)) { EventDelegate _del = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); gen_to_be_invoked.AddOnFinished( _del ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UITweener.AddOnFinished!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveOnFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { EventDelegate _del = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); gen_to_be_invoked.RemoveOnFinished( _del ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Sample(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { float _factor = (float)LuaAPI.lua_tonumber(L, 2); bool _isFinished = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.Sample( _factor, _isFinished ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_PlayForward(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.PlayForward( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_PlayReverse(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.PlayReverse( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Play(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { bool _forward = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.Play( _forward ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResetToBeginning(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ResetToBeginning( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Toggle(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Toggle( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetStartToCurrentValue(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.SetStartToCurrentValue( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetEndToCurrentValue(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.SetEndToCurrentValue( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_amountPerDelta(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.amountPerDelta); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_tweenFactor(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.tweenFactor); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_direction(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.direction); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_current(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); translator.Push(L, UITweener.current); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_method(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); translator.PushUITweenerMethod(L, gen_to_be_invoked.method); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_style(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); translator.PushUITweenerStyle(L, gen_to_be_invoked.style); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_animationCurve(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.animationCurve); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_ignoreTimeScale(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreTimeScale); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_delay(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.delay); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_duration(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_steeperCurves(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.steeperCurves); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_tweenGroup(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tweenGroup); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFinished); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_eventReceiver(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.eventReceiver); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_callWhenFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.callWhenFinished); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_tweenFactor(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.tweenFactor = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_current(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener.current = (UITweener)translator.GetObject(L, 1, typeof(UITweener)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_method(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); UITweener.Method gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UITweener.Method)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value); gen_to_be_invoked.method = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_style(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); UITweener.Style gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UITweener.Style)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value); gen_to_be_invoked.style = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_animationCurve(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.animationCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_ignoreTimeScale(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.ignoreTimeScale = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_delay(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.delay = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_duration(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.duration = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_steeperCurves(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.steeperCurves = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_tweenGroup(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.tweenGroup = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFinished = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_eventReceiver(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.eventReceiver = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_callWhenFinished(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UITweener gen_to_be_invoked = (UITweener)translator.FastGetCSObj(L, 1); gen_to_be_invoked.callWhenFinished = LuaAPI.lua_tostring(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }