place2d() public method

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