public void ShowProject(TerrainProject terrainProject) { this.terrainProject = terrainProject; terrainProject.Load(); refreshLayers(terrainProject.Configurations.Layers, false); selectPipelineLayerInput(getPrimaryLayerButton()); gameObject.SetActive(true); }
private void createNewTerrain(string terrainName) { System.Console.WriteLine("Create new Terrain: " + terrainName); if (terrainName != null && terrainName.Length > 0) { WaitPassive.SetActive(true); TerrainProject terrainProject = new TerrainProject(terrainName, ""); terrainProject.Load(); terrainProject.Save(); openProject(terrainProject); } }
private void continueSaveButtonPressed() { if (ConfigurationMode) { if (checkLayerRestrictions()) { terrainProject.Configurations.Layers = configurationTerrainPipelineLayer; terrainProject.Save(); terrainProject.Load(); CancelConfigurationButtonPressed(); } } else { if (layerInput != null) { layerInput.GetComponent <TerrainInputPanel>().FillInputValues(); } terrainProject.Save(); terrainProject.Load(); WaitPassive.SetActive(false); } }