Beispiel #1
0
    public void ShowProject(TerrainProject terrainProject)
    {
        this.terrainProject = terrainProject;
        terrainProject.Load();

        refreshLayers(terrainProject.Configurations.Layers, false);
        selectPipelineLayerInput(getPrimaryLayerButton());

        gameObject.SetActive(true);
    }
Beispiel #2
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);
        }
    }
Beispiel #3
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);
        }
    }