public override void OnInspectorGUI() { DrawDefaultInspector(); TreeSpawner treeSpawner = (TreeSpawner)target; if (GUILayout.Button("Place Trees")) { treeSpawner.PlaceTrees(); } if (GUILayout.Button("Destroy Trees")) { treeSpawner.DestroyTrees(); } }