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)); } ; }
public Level(MapSizeOption mapSize = MapSizeOption.Small, NumberOfEnemiesOption numberOfEnemies = NumberOfEnemiesOption.Few) { this.mapSize = mapSize; this.numberOfEnemies = numberOfEnemies; State = new LevelState(); }