/// <summary> /// Create a new district zone /// </summary> private DistrictEditor CreatePrefabSelection(string type) { if (_prefabSelectors.ContainsKey(type)) { Debug.LogWarningFormat("TownGenerator: Zonetype {0} already exists. \nFailed to add type.", type); return(null); } var editor = new DistrictEditor(type, this); _prefabSelectors.Add(type, editor); return(editor); }
/// <summary> /// Create a new district zone /// </summary> private DistrictEditor CreatePrefabSelection(string type) { if (_prefabSelectors.ContainsKey(type)) { Debug.LogWarningFormat("TownGenerator: Zonetype {0} already exists. \nFailed to add type.", type); return null; } var editor = new DistrictEditor(type, this); _prefabSelectors.Add(type, editor); return editor; }