public placeLocal ( Transform transform, float ratio ) : void | ||
transform | Transform | |
ratio | float | |
Результат | void |
static public int placeLocal(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 3) { LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.placeLocal(a1, a2); return(0); } else if (argc == 4) { LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); UnityEngine.Vector3 a3; checkType(l, 4, out a3); self.placeLocal(a1, a2, a3); return(0); } LuaDLL.luaL_error(l, "No matched override function to call"); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static int placeLocal(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(LTSpline), typeof(UnityEngine.Transform), typeof(float))) { LTSpline obj = (LTSpline)ToLua.ToObject(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.ToObject(L, 2); float arg1 = (float)LuaDLL.lua_tonumber(L, 3); obj.placeLocal(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(LTSpline), typeof(UnityEngine.Transform), typeof(float), typeof(UnityEngine.Vector3))) { LTSpline obj = (LTSpline)ToLua.ToObject(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.ToObject(L, 2); float arg1 = (float)LuaDLL.lua_tonumber(L, 3); UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 4); obj.placeLocal(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LTSpline.placeLocal")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int placeLocal(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif int argc = LuaDLL.lua_gettop(l); if (argc == 3) { LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.placeLocal(a1, a2); pushValue(l, true); return(1); } else if (argc == 4) { LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); UnityEngine.Vector3 a3; checkType(l, 4, out a3); self.placeLocal(a1, a2, a3); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function placeLocal to call"); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }