Exemple #1
0
    public override void OnInspectorGUI()
    {
        TerrainManager t = (TerrainManager)target;

        DrawDefaultInspector();

        if (GUILayout.Button("Generate Chunks"))
        {
            t.GenerateChunks();
        }

        if (GUILayout.Button("Delete Chunks"))
        {
            t.DeleteChunks();
        }
    }