GetPackBounds() public static method

public static GetPackBounds ( IntPtr L ) : void
L System.IntPtr
return void
示例#1
0
 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);
     }
 }
示例#2
0
        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);
            }
        }