/// <summary> /// Loads default item TileSet /// </summary> /// <returns>True on succes</returns> public bool LoadItemTileSet() { if (string.IsNullOrEmpty(ItemTileSetName)) { return(false); } if (ItemTileSet != null) { ItemTileSet.Dispose(); } ItemTileSet = null; ItemTileSet = ResourceManager.CreateAsset <TileSet>(ItemTileSetName); return(ItemTileSet != null); }
/// <summary> /// Dispose /// </summary> public void Dispose() { foreach (Maze maze in Mazes.Values) { maze.Dispose(); } Mazes.Clear(); if (ItemTileSet != null) { ItemTileSet.Dispose(); } ItemTileSet = null; StartLocation = null; Note = ""; IsDisposed = true; }