static public int GetContacts(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(UnityEngine.ContactFilter2D), typeof(UnityEngine.Collider2D[]))) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.ContactFilter2D a1; checkValueType(l, 2, out a1); UnityEngine.Collider2D[] a2; checkArray(l, 3, out a2); var ret = self.GetContacts(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.ContactFilter2D), typeof(UnityEngine.ContactPoint2D[]))) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.ContactFilter2D a1; checkValueType(l, 2, out a1); UnityEngine.ContactPoint2D[] a2; checkArray(l, 3, out a2); var ret = self.GetContacts(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.Collider2D[]))) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.Collider2D[] a1; checkArray(l, 2, out a1); var ret = self.GetContacts(a1); pushValue(l, true); pushValue(l, ret); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.ContactPoint2D[]))) { UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l); UnityEngine.ContactPoint2D[] a1; checkArray(l, 2, out a1); var ret = self.GetContacts(a1); pushValue(l, true); pushValue(l, ret); return(2); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }