using UnityEngine; using System.Collections.Generic; class BaseObjects : MonoBehaviour { public GameObject baseTile; public List editorTileTypes; public Dictionary tileTypes; private void Awake() { //Fill the tileTypes dictionary tileTypes = new Dictionary(); foreach(TileType tileType in editorTileTypes) { if(tileType == null) { continue; } tileTypes.Add(tileType.name, tileType); } } }