Пример #1
0
        public override void OnInspectorGUI()
        {
            _foldout.Update();
            if (!_foldout.OverrideInspector)
            {
                base.OnInspectorGUI();
            }
            else
            {
                _foldout.OnInspectorGUI();
            }

            _buttonMethod.OnInspectorGUI();
        }
Пример #2
0
        public override void OnInspectorGUI()
        {
            _buttonMethod?.OnBeforeInspectorGUI();

            if (_foldout != null)
            {
                _foldout.Update();
                if (!_foldout.OverrideInspector)
                {
                    base.OnInspectorGUI();
                }
                else
                {
                    _foldout.OnInspectorGUI();
                }
            }

            _buttonMethod?.OnAfterInspectorGUI();
        }