static public int Cast(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 3) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); UnityEngine.RaycastHit2D[] a2; checkArray(l, 3, out a2); var ret = self.Cast(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } else if (argc == 4) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); UnityEngine.RaycastHit2D[] a2; checkArray(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); var ret = self.Cast(a1, a2, a3); pushValue(l, true); pushValue(l, ret); return(2); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function Cast to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int Cast(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 3) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); UnityEngine.RaycastHit2D[] a2; checkType(l, 3, out a2); var ret = self.Cast(a1, a2); pushValue(l, ret); return(1); } else if (matchType(l, argc, 2, typeof(UnityEngine.Vector2), typeof(UnityEngine.ContactFilter2D), typeof(UnityEngine.RaycastHit2D[]))) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); UnityEngine.ContactFilter2D a2; checkValueType(l, 3, out a2); UnityEngine.RaycastHit2D[] a3; checkType(l, 4, out a3); var ret = self.Cast(a1, a2, a3); pushValue(l, ret); return(1); } else if (matchType(l, argc, 2, typeof(UnityEngine.Vector2), typeof(UnityEngine.RaycastHit2D[]), typeof(float))) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); UnityEngine.RaycastHit2D[] a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); var ret = self.Cast(a1, a2, a3); pushValue(l, ret); return(1); } else if (argc == 5) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); UnityEngine.ContactFilter2D a2; checkValueType(l, 3, out a2); UnityEngine.RaycastHit2D[] a3; checkType(l, 4, out a3); System.Single a4; checkType(l, 5, out a4); var ret = self.Cast(a1, a2, a3, a4); pushValue(l, ret); return(1); } return(error(l, "No matched override function to call")); } catch (Exception e) { return(error(l, e)); } }