Example #1
0
 static int GetUsedTilesNonAlloc(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Tilemaps.Tilemap    obj  = (UnityEngine.Tilemaps.Tilemap)ToLua.CheckObject(L, 1, typeof(UnityEngine.Tilemaps.Tilemap));
         UnityEngine.Tilemaps.TileBase[] arg0 = ToLua.CheckObjectArray <UnityEngine.Tilemaps.TileBase>(L, 2);
         int o = obj.GetUsedTilesNonAlloc(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }