/// <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);
        }
Ejemplo n.º 2
0
        /// <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;
        }