void Awake() { prepCtrl = GameObject.FindGameObjectWithTag("GameController").GetComponent<PreperationController>(); }
void Awake() { worldLevelsDict = new Dictionary<int, WorldLevel>(); worldLevelUsingIndicatorDict = new Dictionary<MapIndicator, WorldLevel>(); foreach (WorldLevel item in worldLevels) { worldLevelsDict.Add (item.levelID, item); worldLevelUsingIndicatorDict.Add (item.indicator, item); } prepCtrl = GetComponent<PreperationController>(); enabled = false; }