static int _m_GetMotorTorque(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.HingeJoint2D __cl_gen_to_be_invoked = (UnityEngine.HingeJoint2D)translator.FastGetCSObj(L, 1); try { { float timeStep = (float)LuaAPI.lua_tonumber(L, 2); float __cl_gen_ret = __cl_gen_to_be_invoked.GetMotorTorque(timeStep); LuaAPI.lua_pushnumber(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }