public void ClearTiles() { for (int i = 0; i < tiles.Length; i++) { if (tiles[i] != null) { contentFactory.Reclaim(tiles[i].Content); CustomDestroy.SafeDestroy(tiles[i].gameObject); } } }
public void Reclaim(GameTileContent content) { Debug.Assert(content.OriginFactory == this, "Wrong factory reclaimed!"); CustomDestroy.SafeDestroy(content.gameObject); }