public static void Push(IntPtr L, Bounds bound) { LuaStatic.GetPackBounds(L); ToLua.Push(L, bound.get_center()); ToLua.Push(L, bound.get_size()); if (LuaDLL.lua_pcall(L, 2, 1, 0) != 0) { string msg = LuaDLL.lua_tostring(L, -1); throw new LuaException(msg, null, 1); } }
public static void Push(IntPtr L, Bounds bound) { LuaStatic.GetPackBounds(L); Push(L, bound.center); Push(L, bound.size); if (LuaDLL.lua_pcall(L, 2, 1, 0) != 0) { string error = LuaDLL.lua_tostring(L, -1); throw new LuaException(error); } }