static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.CharacterJoint(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _s_set_projectionAngle(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.CharacterJoint __cl_gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.projectionAngle = (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_twistLimitSpring(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.CharacterJoint __cl_gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.twistLimitSpring); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_enableProjection(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.CharacterJoint __cl_gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.enableProjection); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_swingAxis(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); translator.PushUnityEngineVector3(L, gen_to_be_invoked.swingAxis); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_enableProjection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); gen_to_be_invoked.enableProjection = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_projectionAngle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.projectionAngle); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_swing2Limit(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.CharacterJoint __cl_gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); UnityEngine.SoftJointLimit __cl_gen_value; translator.Get(L, 2, out __cl_gen_value); __cl_gen_to_be_invoked.swing2Limit = __cl_gen_value; } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_twistLimitSpring(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CharacterJoint gen_to_be_invoked = (UnityEngine.CharacterJoint)translator.FastGetCSObj(L, 1); UnityEngine.SoftJointLimitSpring gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.twistLimitSpring = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.CharacterJoint(); 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.CharacterJoint constructor!")); }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.CharacterJoint o = (UnityEngine.CharacterJoint)obj; swingAxis = o.swingAxis; twistLimitSpring = o.twistLimitSpring; swingLimitSpring = o.swingLimitSpring; lowTwistLimit = o.lowTwistLimit; highTwistLimit = o.highTwistLimit; swing1Limit = o.swing1Limit; swing2Limit = o.swing2Limit; enableProjection = o.enableProjection; projectionDistance = o.projectionDistance; projectionAngle = o.projectionAngle; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.CharacterJoint o = (UnityEngine.CharacterJoint)obj; o.swingAxis = swingAxis; o.twistLimitSpring = twistLimitSpring; o.swingLimitSpring = swingLimitSpring; o.lowTwistLimit = lowTwistLimit; o.highTwistLimit = highTwistLimit; o.swing1Limit = swing1Limit; o.swing2Limit = swing2Limit; o.enableProjection = enableProjection; o.projectionDistance = projectionDistance; o.projectionAngle = projectionAngle; return(o); }