public override void OnInspectorGUI() { base.OnInspectorGUI(); //DrawDefaultInspector(); TerrainManager terrainMan = (TerrainManager)target; if (GUILayout.Button("Make default map")) { terrainMan.MakeDefaultMap(); } if (GUILayout.Button("Generate Map") || terrainMan.AutoGen) { terrainMan.GenerateTerrain(); //terrainMan.mesh = terrainMan.meshGen.mesh; } if (GUILayout.Button("Perlin Noise") || terrainMan.AutoPerlin) { terrainMan.MakePerlinMap(); } if (GUILayout.Button("Voronoi Noise")) { terrainMan.GenerateVoronoiMap(); } if (GUILayout.Button("Make Pressure Map")) { terrainMan.MakePressureMap(); } }
public void GenerateTerrain() { terrainController.GenerateTerrain(dataController.physicalData); PlayerAvatar.transform.position = new Vector3(200f, terrainController.startingAltitude, 200f); }