public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        BuilderTree myScript = (BuilderTree)target;

        if (GUILayout.Button("Generate Tree"))
        {
            myScript.GenTree();
        }
    }
Beispiel #2
0
 public void Initialize()
 {
     _tree = BuilderTree.Buider();
 }