Пример #1
0
    public override void OnInspectorGUI()
    {
        ScrollMenu target = (ScrollMenu)base.target;

        base.OnInspectorGUI();
        if (GUILayout.Button("Instantiate panels"))
        {
            target.SetPanels();
        }
        if (GUILayout.Button("Clear panels"))
        {
            target.ClearPanels();
        }
    }