static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Game.MoveComp gen_ret = new Game.MoveComp(); 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 Game.MoveComp constructor!")); }
static int _m_OnFixedUpdate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.MoveComp gen_to_be_invoked = (Game.MoveComp)translator.FastGetCSObj(L, 1); { float _deltaTime = (float)LuaAPI.lua_tonumber(L, 2); gen_to_be_invoked.OnFixedUpdate(_deltaTime); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }