static int _m_SetSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); { float x = (float)LuaAPI.lua_tonumber(L, 2); float y = (float)LuaAPI.lua_tonumber(L, 3); float z = (float)LuaAPI.lua_tonumber(L, 4); __cl_gen_to_be_invoked.SetSpeed(x, y, z); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _s_set_OnHitMoveTarget(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.OnHitMoveTarget = translator.GetDelegate <System.Action <int> >(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set__centerOffsetY(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked._centerOffsetY = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_Velocity(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); translator.PushUnityEngineVector3(L, __cl_gen_to_be_invoked.Velocity); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_TopY(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.TopY); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { XH.Pin.LSKMoveComponent __cl_gen_ret = new XH.Pin.LSKMoveComponent(); translator.Push(L, __cl_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 XH.Pin.LSKMoveComponent constructor!")); }
static int _m_DORotate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.DORotate( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetRotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); { UnityEngine.Quaternion rotation; translator.Get(L, 2, out rotation); __cl_gen_to_be_invoked.SetRotation(rotation); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_DoParabolaMove(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); { bool isForward = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.DoParabolaMove(isForward); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetPBMInitSpeedRange(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 min; translator.Get(L, 2, out min); UnityEngine.Vector3 max; translator.Get(L, 3, out max); __cl_gen_to_be_invoked.SetPBMInitSpeedRange(min, max); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_AttachToWheel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XH.Pin.LSKMoveComponent __cl_gen_to_be_invoked = (XH.Pin.LSKMoveComponent)translator.FastGetCSObj(L, 1); { UnityEngine.Transform target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); float radius = (float)LuaAPI.lua_tonumber(L, 3); __cl_gen_to_be_invoked.AttachToWheel(target, radius); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }