示例#1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        //serializedObject.Update();

        if (GUILayout.Button("Destroy world"))
        {
            terrainManager.DestroyWorld();
        }

        if (GUILayout.Button("Generate world"))
        {
            terrainManager.GenerateWorld();
        }

        if (GUILayout.Button("Regenerate world"))
        {
            terrainManager.DestroyWorld();
            terrainManager.GenerateWorld();
        }

        //serializedObject.ApplyModifiedProperties();
    }