예제 #1
0
        private void OnGUI()
        {
            settings = SettingsObject.Instance;
            CheckEmptyGizmo();

            if (settings.editorStart)
            {
                IsGenerating();
                //this.Focus();
            }
            else if (settings.editorEnd)
            {
                DoneGenerating();
                //this.Focus();
            }
            else if (settings.spawnGizmos.Count == 0)
            {
                CreateGizmo();
            }

            else
            {
                tab = GUILayout.Toolbar(tab, new string[] { "Constraints", "Highways", "Main Roads", "Streets" });
                switch (tab)
                {
                case 0:
                    Constraints();
                    break;

                case 1:
                    Highway();
                    break;

                case 2:
                    MainRoad();
                    break;

                case 3:
                    Street();
                    break;
                }
            }
        }
예제 #2
0
 //Get's settings from settingsObject
 protected virtual void InitSettings()
 {
     settings      = SettingsObject.Instance;
     populationMap = settings.populationMap;
     waterMap      = settings.waterMap;
 }