private void DrawTypeSelectionControl()
        {
            int controlID = GUIUtility.GetControlID(ControlHint, FocusType.Keyboard, _position);

            _triggerDropDown = false;
            ReactToCurrentEvent(controlID);

            if (!_triggerDropDown)
            {
                return;
            }

            _dropdownDrawer.Draw(OnTypeSelected);
        }
Example #2
0
        private void DrawTypeSelectionControl()
        {
            int controlID = GUIUtility.GetControlID(_controlHint, FocusType.Keyboard, _position);

            ReactToCurrentEvent(controlID);

            if (!_triggerDropdown)
            {
                return;
            }

            _triggerDropdown = false;

            _dropdownDrawer.Draw(type =>
            {
                OnTypeSelected(type);
                _onTypeSelected?.Invoke(type);
            });
        }