static StackObject *Rotate_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Space @relativeTo = (UnityEngine.Space) typeof(UnityEngine.Space).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Single @angle = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Vector3 @axis = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Rotate(@axis, @angle, @relativeTo); return(__ret); }
static StackObject *Rotate_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Single @angle = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Vector3 @axis = new UnityEngine.Vector3(); if (ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder != null) { ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder.ParseValue(ref @axis, __intp, ptr_of_this_method, __mStack, true); } else { @axis = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 16); __intp.Free(ptr_of_this_method); } ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); instance_of_this_method.Rotate(@axis, @angle); return(__ret); }
static StackObject *Rotate_24(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Vector3 @eulers = new UnityEngine.Vector3(); if (ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder != null) { ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder.ParseValue(ref @eulers, __intp, ptr_of_this_method, __mStack, true); } else { @eulers = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); } ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Rotate(@eulers); return(__ret); }
public void stark(UnityEngine.GameObject original, UnityEngine.GameObject spawn, System.Int32 remain) { UnityEngine.Transform parent = original.transform; UnityEngine.GameObject instantiate = Instantiate(original, spawn.transform); instantiate.name = System.String.Format("Spawn {0}", remain); UnityEngine.Transform item = instantiate.transform; //item.parent = parent.parent; item.Translate(parent.localPosition); item.Rotate(parent.localRotation.eulerAngles); //item.AddComponent<VRCSDK2.VRC_EventHandler>(); //item.AddComponent<VRCSDK2.VRC_Trigger>(); //VRCSDK2.VRC_Trigger trigger = item.GetComponent<VRCSDK2.VRC_Trigger>(); //trigger.Triggers = AddTriggers(); stark(original, instantiate, remain); }
public System.Boolean MoveNext() { this.position += 1; System.Boolean next = this.position < this.goal; if (next) { UnityEngine.Transform parent = this.original.transform; UnityEngine.GameObject instantiate = Instantiate(this.original, this.spawn.transform); instantiate.name = System.String.Format("Spawn {0}", this.position); UnityEngine.Transform item = instantiate.transform; item.Translate(parent.localPosition); item.Rotate(parent.localRotation.eulerAngles); this.spawn = instantiate; } return(next); }
static StackObject *Rotate_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Vector3 @eulers = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Transform instance_of_this_method = (UnityEngine.Transform) typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Rotate(@eulers); return(__ret); }
public static void Register() { if (doNotModify) { return; } object o = null; { UnityEngine.MonoBehaviour v = (UnityEngine.MonoBehaviour)o; v = new UnityEngine.MonoBehaviour(); var p1 = v.tag; v.tag = (System.String)o; var p2 = v.name; v.name = (System.String)o; v.IsInvoking(); v.CancelInvoke(); v.Invoke((System.String)o, (System.Single)o); v.InvokeRepeating((System.String)o, (System.Single)o, (System.Single)o); v.CancelInvoke((System.String)o); v.IsInvoking((System.String)o); v.StartCoroutine((System.String)o); v.StartCoroutine((System.String)o, (System.Object)o); v.StartCoroutine((System.Collections.IEnumerator)o); v.StopCoroutine((System.Collections.IEnumerator)o); v.StopCoroutine((UnityEngine.Coroutine)o); UnityEngine.MonoBehaviour.print((System.Object)o); v.GetComponent((System.Type)o); UnityEngine.Component p3 = (UnityEngine.Component)o; v.TryGetComponent((System.Type)o, out p3); v.GetComponentInChildren((System.Type)o, (System.Boolean)o); v.GetComponentInChildren((System.Type)o); v.GetComponentsInChildren((System.Type)o, (System.Boolean)o); v.GetComponentsInChildren((System.Type)o); v.GetComponentInParent((System.Type)o); v.GetComponentsInParent((System.Type)o, (System.Boolean)o); v.GetComponentsInParent((System.Type)o); v.GetComponents((System.Type)o); v.GetComponents((System.Type)o, (System.Collections.Generic.List <UnityEngine.Component>)o); v.CompareTag((System.String)o); v.SendMessageUpwards((System.String)o, (System.Object)o); v.SendMessageUpwards((System.String)o); v.SendMessageUpwards((System.String)o, (UnityEngine.SendMessageOptions)o); v.SendMessage((System.String)o, (System.Object)o); v.SendMessage((System.String)o); v.SendMessage((System.String)o, (UnityEngine.SendMessageOptions)o); v.BroadcastMessage((System.String)o, (System.Object)o); v.BroadcastMessage((System.String)o); v.BroadcastMessage((System.String)o, (UnityEngine.SendMessageOptions)o); v.GetInstanceID(); v.GetHashCode(); v.Equals((System.Object)o); v.ToString(); } { UnityEngine.Transform v = (UnityEngine.Transform)o; var p4 = v.position; v.position = (UnityEngine.Vector3)o; var p5 = v.localPosition; v.localPosition = (UnityEngine.Vector3)o; var p6 = v.eulerAngles; v.eulerAngles = (UnityEngine.Vector3)o; var p7 = v.localEulerAngles; v.localEulerAngles = (UnityEngine.Vector3)o; var p8 = v.right; v.right = (UnityEngine.Vector3)o; var p9 = v.up; v.up = (UnityEngine.Vector3)o; var pA = v.forward; v.forward = (UnityEngine.Vector3)o; var pB = v.rotation; v.rotation = (UnityEngine.Quaternion)o; var pC = v.localRotation; v.localRotation = (UnityEngine.Quaternion)o; var pD = v.localScale; v.localScale = (UnityEngine.Vector3)o; var pE = v.parent; v.parent = (UnityEngine.Transform)o; var pF = v.worldToLocalMatrix; var p10 = v.localToWorldMatrix; var p11 = v.root; var p12 = v.lossyScale; var p13 = v.hierarchyCapacity; v.hierarchyCapacity = (System.Int32)o; var p14 = v.hierarchyCount; var p15 = v.tag; v.tag = (System.String)o; var p16 = v.name; v.name = (System.String)o; v.SetParent((UnityEngine.Transform)o); v.SetPositionAndRotation((UnityEngine.Vector3)o, (UnityEngine.Quaternion)o); v.Translate((UnityEngine.Vector3)o, (UnityEngine.Space)o); v.Translate((UnityEngine.Vector3)o); v.Translate((System.Single)o, (System.Single)o, (System.Single)o, (UnityEngine.Space)o); v.Translate((System.Single)o, (System.Single)o, (System.Single)o); v.Translate((UnityEngine.Vector3)o, (UnityEngine.Transform)o); v.Translate((System.Single)o, (System.Single)o, (System.Single)o, (UnityEngine.Transform)o); v.Rotate((UnityEngine.Vector3)o, (UnityEngine.Space)o); v.Rotate((UnityEngine.Vector3)o); v.Rotate((System.Single)o, (System.Single)o, (System.Single)o, (UnityEngine.Space)o); v.Rotate((System.Single)o, (System.Single)o, (System.Single)o); v.Rotate((UnityEngine.Vector3)o, (System.Single)o, (UnityEngine.Space)o); v.Rotate((UnityEngine.Vector3)o, (System.Single)o); v.RotateAround((UnityEngine.Vector3)o, (UnityEngine.Vector3)o, (System.Single)o); v.LookAt((UnityEngine.Transform)o, (UnityEngine.Vector3)o); v.LookAt((UnityEngine.Transform)o); v.LookAt((UnityEngine.Vector3)o, (UnityEngine.Vector3)o); v.LookAt((UnityEngine.Vector3)o); v.TransformDirection((UnityEngine.Vector3)o); v.TransformDirection((System.Single)o, (System.Single)o, (System.Single)o); v.InverseTransformDirection((UnityEngine.Vector3)o); v.InverseTransformDirection((System.Single)o, (System.Single)o, (System.Single)o); v.TransformVector((UnityEngine.Vector3)o); v.TransformVector((System.Single)o, (System.Single)o, (System.Single)o); v.InverseTransformVector((UnityEngine.Vector3)o); v.InverseTransformVector((System.Single)o, (System.Single)o, (System.Single)o); v.TransformPoint((UnityEngine.Vector3)o); v.TransformPoint((System.Single)o, (System.Single)o, (System.Single)o); v.InverseTransformPoint((UnityEngine.Vector3)o); v.InverseTransformPoint((System.Single)o, (System.Single)o, (System.Single)o); v.Find((System.String)o); v.GetEnumerator(); v.GetComponent((System.Type)o); UnityEngine.Component p17 = (UnityEngine.Component)o; v.TryGetComponent((System.Type)o, out p17); v.GetComponentInChildren((System.Type)o, (System.Boolean)o); v.GetComponentInChildren((System.Type)o); v.GetComponentsInChildren((System.Type)o, (System.Boolean)o); v.GetComponentsInChildren((System.Type)o); v.GetComponentInParent((System.Type)o); v.GetComponentsInParent((System.Type)o, (System.Boolean)o); v.GetComponentsInParent((System.Type)o); v.GetComponents((System.Type)o); v.GetComponents((System.Type)o, (System.Collections.Generic.List <UnityEngine.Component>)o); v.CompareTag((System.String)o); v.SendMessageUpwards((System.String)o, (System.Object)o); v.SendMessageUpwards((System.String)o); v.SendMessageUpwards((System.String)o, (UnityEngine.SendMessageOptions)o); v.SendMessage((System.String)o, (System.Object)o); v.SendMessage((System.String)o); v.SendMessage((System.String)o, (UnityEngine.SendMessageOptions)o); v.BroadcastMessage((System.String)o, (System.Object)o); v.BroadcastMessage((System.String)o); v.BroadcastMessage((System.String)o, (UnityEngine.SendMessageOptions)o); v.GetInstanceID(); v.GetHashCode(); v.Equals((System.Object)o); v.ToString(); } }
public static int Rotate(System.IntPtr L) { int nargs = LuaAPI.GetTop(L); if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsNumber(L, 3)) { UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1); UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2); UnityEngine.Space arg2 = (UnityEngine.Space)LuaCallback.ToNumber(L, 3); arg0.Rotate(arg1, arg2); return(0); } if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2)) { UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1); UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2); arg0.Rotate(arg1); return(0); } if (nargs == 5 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2) && LuaAPI.IsNumber(L, 3) && LuaAPI.IsNumber(L, 4) && LuaAPI.IsNumber(L, 5)) { UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1); System.Single arg1 = (System.Single)LuaCallback.ToNumber(L, 2); System.Single arg2 = (System.Single)LuaCallback.ToNumber(L, 3); System.Single arg3 = (System.Single)LuaCallback.ToNumber(L, 4); UnityEngine.Space arg4 = (UnityEngine.Space)LuaCallback.ToNumber(L, 5); arg0.Rotate(arg1, arg2, arg3, arg4); return(0); } if (nargs == 4 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2) && LuaAPI.IsNumber(L, 3) && LuaAPI.IsNumber(L, 4)) { UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1); System.Single arg1 = (System.Single)LuaCallback.ToNumber(L, 2); System.Single arg2 = (System.Single)LuaCallback.ToNumber(L, 3); System.Single arg3 = (System.Single)LuaCallback.ToNumber(L, 4); arg0.Rotate(arg1, arg2, arg3); return(0); } if (nargs == 4 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsNumber(L, 3) && LuaAPI.IsNumber(L, 4)) { UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1); UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2); System.Single arg2 = (System.Single)LuaCallback.ToNumber(L, 3); UnityEngine.Space arg3 = (UnityEngine.Space)LuaCallback.ToNumber(L, 4); arg0.Rotate(arg1, arg2, arg3); return(0); } if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsNumber(L, 3)) { UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1); UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2); System.Single arg2 = (System.Single)LuaCallback.ToNumber(L, 3); arg0.Rotate(arg1, arg2); return(0); } return(0); }
static int _m_Rotate(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Transform __cl_gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { float xAngle = (float)LuaAPI.lua_tonumber(L, 2); float yAngle = (float)LuaAPI.lua_tonumber(L, 3); float zAngle = (float)LuaAPI.lua_tonumber(L, 4); __cl_gen_to_be_invoked.Rotate(xAngle, yAngle, zAngle); return(0); } if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 eulerAngles; translator.Get(L, 2, out eulerAngles); __cl_gen_to_be_invoked.Rotate(eulerAngles); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 axis; translator.Get(L, 2, out axis); float angle = (float)LuaAPI.lua_tonumber(L, 3); __cl_gen_to_be_invoked.Rotate(axis, angle); return(0); } if (__gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.Space>(L, 5)) { float xAngle = (float)LuaAPI.lua_tonumber(L, 2); float yAngle = (float)LuaAPI.lua_tonumber(L, 3); float zAngle = (float)LuaAPI.lua_tonumber(L, 4); UnityEngine.Space relativeTo; translator.Get(L, 5, out relativeTo); __cl_gen_to_be_invoked.Rotate(xAngle, yAngle, zAngle, relativeTo); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Space>(L, 3)) { UnityEngine.Vector3 eulerAngles; translator.Get(L, 2, out eulerAngles); UnityEngine.Space relativeTo; translator.Get(L, 3, out relativeTo); __cl_gen_to_be_invoked.Rotate(eulerAngles, relativeTo); return(0); } if (__gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Space>(L, 4)) { UnityEngine.Vector3 axis; translator.Get(L, 2, out axis); float angle = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Space relativeTo; translator.Get(L, 4, out relativeTo); __cl_gen_to_be_invoked.Rotate(axis, angle, relativeTo); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.Rotate!")); }
public static int Rotate(IntPtr L) { int result = 1; int count = LuaDLL.lua_gettop(L); if (count == 2 && LuaStatic.CheckType(L, typeof(UnityEngine.Vector3), 2)) { UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform; UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 2); obj.Rotate(arg1); return(result); } if (count == 3 && LuaStatic.CheckType(L, typeof(UnityEngine.Vector3), 2) && LuaStatic.CheckType(L, typeof(UnityEngine.Space), 3)) { UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform; UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 2); UnityEngine.Space arg2 = (UnityEngine.Space)(double)(LuaStatic.GetObj(L, 3)); obj.Rotate(arg1, arg2); return(result); } if (count == 4 && LuaStatic.CheckType(L, typeof(Single), 2) && LuaStatic.CheckType(L, typeof(Single), 3) && LuaStatic.CheckType(L, typeof(Single), 4)) { UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform; Single arg1 = (Single)(double)(LuaStatic.GetObj(L, 2)); Single arg2 = (Single)(double)(LuaStatic.GetObj(L, 3)); Single arg3 = (Single)(double)(LuaStatic.GetObj(L, 4)); obj.Rotate(arg1, arg2, arg3); return(result); } if (count == 5 && LuaStatic.CheckType(L, typeof(Single), 2) && LuaStatic.CheckType(L, typeof(Single), 3) && LuaStatic.CheckType(L, typeof(Single), 4) && LuaStatic.CheckType(L, typeof(UnityEngine.Space), 5)) { UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform; Single arg1 = (Single)(double)(LuaStatic.GetObj(L, 2)); Single arg2 = (Single)(double)(LuaStatic.GetObj(L, 3)); Single arg3 = (Single)(double)(LuaStatic.GetObj(L, 4)); UnityEngine.Space arg4 = (UnityEngine.Space)(double)(LuaStatic.GetObj(L, 5)); obj.Rotate(arg1, arg2, arg3, arg4); return(result); } if (count == 3 && LuaStatic.CheckType(L, typeof(UnityEngine.Vector3), 2) && LuaStatic.CheckType(L, typeof(Single), 3)) { UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform; UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 2); Single arg2 = (Single)(double)(LuaStatic.GetObj(L, 3)); obj.Rotate(arg1, arg2); return(result); } if (count == 4 && LuaStatic.CheckType(L, typeof(UnityEngine.Vector3), 2) && LuaStatic.CheckType(L, typeof(Single), 3) && LuaStatic.CheckType(L, typeof(UnityEngine.Space), 4)) { UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform; UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 2); Single arg2 = (Single)(double)(LuaStatic.GetObj(L, 3)); UnityEngine.Space arg3 = (UnityEngine.Space)(double)(LuaStatic.GetObj(L, 4)); obj.Rotate(arg1, arg2, arg3); return(result); } LuaStatic.traceback(L, "count not enough"); LuaDLL.lua_error(L); return(result); }
int UnityEngineTransform_m_Rotate(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { float _xAngle = (float)LuaAPI.lua_tonumber(L, 2); float _yAngle = (float)LuaAPI.lua_tonumber(L, 3); float _zAngle = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.Rotate(_xAngle, _yAngle, _zAngle); return(0); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 _eulers; translator.Get(L, 2, out _eulers); gen_to_be_invoked.Rotate(_eulers); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 _axis; translator.Get(L, 2, out _axis); float _angle = (float)LuaAPI.lua_tonumber(L, 3); gen_to_be_invoked.Rotate(_axis, _angle); return(0); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.Space>(L, 5)) { float _xAngle = (float)LuaAPI.lua_tonumber(L, 2); float _yAngle = (float)LuaAPI.lua_tonumber(L, 3); float _zAngle = (float)LuaAPI.lua_tonumber(L, 4); UnityEngine.Space _relativeTo; translator.Get(L, 5, out _relativeTo); gen_to_be_invoked.Rotate(_xAngle, _yAngle, _zAngle, _relativeTo); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Space>(L, 3)) { UnityEngine.Vector3 _eulers; translator.Get(L, 2, out _eulers); UnityEngine.Space _relativeTo; translator.Get(L, 3, out _relativeTo); gen_to_be_invoked.Rotate(_eulers, _relativeTo); return(0); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Space>(L, 4)) { UnityEngine.Vector3 _axis; translator.Get(L, 2, out _axis); float _angle = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.Space _relativeTo; translator.Get(L, 4, out _relativeTo); gen_to_be_invoked.Rotate(_axis, _angle, _relativeTo); return(0); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.Rotate!")); }