/// <summary> /// PopulateAvailableMazeDoors populates the available list with Maze doors from tileMapManager.MazeDoor appropriately /// </summary> private void PopulateAvailableMazeDoors() { //Loop through tileMapManager MazeDoors and see if there are any doors that are a acceptable distance away from the player to add foreach (MazeDoorEnum mazeDoor in tileMapManager.MazeDoors.Keys) { if (!PlayerCloseToPostion(playerPosition.position, tileMapManager.MazeDoorPosition(mazeDoor))) { if (!availableMazeDoors.Contains(mazeDoor)) { availableMazeDoors.Add(mazeDoor); } } } }