Example #1
0
    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);
        }
    }
Example #2
0
    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);
        }
    }