Beispiel #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        if (GUILayout.Button("Generate noise"))
        {
            terrainGenerator.Start();
        }

        if (GUILayout.Button("Generate terrain step"))
        {
            if (!terrainStepEnumerator.MoveNext())
            {
                terrainStepEnumerator = terrainGenerator.GenerateStep().GetEnumerator();
            }
        }

        if (GUILayout.Button("Check normal borders"))
        {
            terrainGenerator.CheckNormals();
        }
    }