Modelowanie_Wirtualnych_Swi.../Assets/Scripts/Editor/MultipleTreesEditor.cs

19 lines
423 B
C#
Raw Normal View History

2021-07-09 23:35:24 +02:00
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();
}
}
}