placeLocal2d() public method

public placeLocal2d ( Transform transform, float ratio ) : void
transform Transform
ratio float
return void
Esempio n. 1
0
 static public int placeLocal2d(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
         LTSpline self = (LTSpline)checkSelf(l);
         UnityEngine.Transform a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         self.placeLocal2d(a1, a2);
         pushValue(l, true);
         return(1);
     }
     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
 }
Esempio n. 2
0
 static public int placeLocal2d(IntPtr l)
 {
     try {
         LTSpline self = (LTSpline)checkSelf(l);
         UnityEngine.Transform a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         self.placeLocal2d(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 3
0
 static public int placeLocal2d(IntPtr l)
 {
     try {
         LTSpline self = (LTSpline)checkSelf(l);
         UnityEngine.Transform a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         self.placeLocal2d(a1, a2);
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Esempio n. 4
0
 static int placeLocal2d(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LTSpline obj = (LTSpline)ToLua.CheckObject(L, 1, typeof(LTSpline));
         UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.placeLocal2d(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }