Пример #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        FieldGenerator generator = (FieldGenerator)target;

        if (GUILayout.Button("Create field!"))
        {
            generator.GenerateField();
        }

        if (GUILayout.Button("Clear field!"))
        {
            generator.ClearField();
        }
    }