示例#1
0
        /// <summary>
        /// Unloads this instance when the tile is no longer visible.
        /// </summary>
        public void Unload()
        {
            Image = null;

            SubTiles.ForEach(subTile => subTile?.Unload());
            _subLevel.Children.Clear();
        }
        /// <summary>
        /// Unloads this instance when the tile is no longer visible.
        /// </summary>
        public void Unload()
        {
            Image = null;

            SubTiles.ForEach(subTile => subTile?.Unload());
            // ReSharper disable once PossibleNullReferenceException
            _subLevel?.Children.Clear();
        }