Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        Ladder e = (Ladder)target;

        GUILayout.Label("Управление секциями:", EditorStyles.boldLabel);
        GUILayout.BeginHorizontal();
        if (GUILayout.Button("Add Section"))
        {
            e.AddSection();
        }
        if (GUILayout.Button("Remove Section"))
        {
            e.RemoveSection();
        }
        if (GUILayout.Button("Clear All"))
        {
            e.ClearAll();
        }
        GUILayout.EndHorizontal();
    }