MWS_2021/Unity Project/Assets/Scripts/Editor/MultipleTreesEditor.cs
2021-05-06 01:27:44 +02:00

19 lines
423 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(GrowMultipleTrees))]
public class MultipleTreesEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
GrowMultipleTrees myScript = (GrowMultipleTrees)target;
if(GUILayout.Button("Step"))
{
myScript.step();
}
}
}