public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            MapSizeOption         mapSize  = MapSizeDropdown();
            NumberOfEnemiesOption nEnemies = NumberOfEnemiesDropdown();

            if (GUILayout.Button("Generate Terrain"))
            {
                GameplayController controller = (GameplayController)target;
                controller.GenerateGame(new Level(mapSize, nEnemies));
            }
            ;
        }
Exemple #2
0
 public Level(MapSizeOption mapSize = MapSizeOption.Small, NumberOfEnemiesOption numberOfEnemies = NumberOfEnemiesOption.Few)
 {
     this.mapSize         = mapSize;
     this.numberOfEnemies = numberOfEnemies;
     State = new LevelState();
 }