forked from andkok/MWS_2021
19 lines
426 B
C#
19 lines
426 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEditor;
|
||
|
using UnityEngine;
|
||
|
|
||
|
[CustomEditor(typeof(LeafGrowScript))]
|
||
|
public class LeafGrowScriptEditor : Editor
|
||
|
{
|
||
|
public override void OnInspectorGUI()
|
||
|
{
|
||
|
DrawDefaultInspector();
|
||
|
LeafGrowScript myScript = (LeafGrowScript)target;
|
||
|
if(GUILayout.Button("Grow Flower"))
|
||
|
{
|
||
|
myScript.DrawLeaf();
|
||
|
}
|
||
|
}
|
||
|
}
|