Global settings and helpers for 2D physics.
static public int constructor(IntPtr l) { try { UnityEngine.Physics2D o; o=new UnityEngine.Physics2D(); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
public static int constructor(IntPtr l) { try { UnityEngine.Physics2D o; o=new UnityEngine.Physics2D(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
static int _CreatePhysics2D(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { Physics2D obj = new Physics2D(); LuaScriptMgr.PushObject(L, obj); return 1; } else { LuaDLL.luaL_error(L, "invalid arguments to method: Physics2D.New"); } return 0; }