static public int GetPath(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 UnityEngine.CompositeCollider2D self = (UnityEngine.CompositeCollider2D)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); UnityEngine.Vector2[] a2; checkArray(l, 3, out a2); var ret = self.GetPath(a1, a2); pushValue(l, true); pushValue(l, ret); 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 }
static public int GetPath(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 (matchType(l, argc, 2, typeof(int), typeof(UnityEngine.Vector2[]))) { UnityEngine.CompositeCollider2D self = (UnityEngine.CompositeCollider2D)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); UnityEngine.Vector2[] a2; checkArray(l, 3, out a2); var ret = self.GetPath(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } else if (matchType(l, argc, 2, typeof(int), typeof(List <UnityEngine.Vector2>))) { UnityEngine.CompositeCollider2D self = (UnityEngine.CompositeCollider2D)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Collections.Generic.List <UnityEngine.Vector2> a2; checkType(l, 3, out a2); var ret = self.GetPath(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function GetPath 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 }
static public int GetPath(IntPtr l) { try { UnityEngine.CompositeCollider2D self = (UnityEngine.CompositeCollider2D)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); UnityEngine.Vector2[] a2; checkArray(l, 3, out a2); var ret = self.GetPath(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }