예제 #1
0
        public Button AddButton(PopUpButtonMask buttonMask, KeyCode keyCode, UnityAction action)
        {
            var button = AddButton(buttonMask, action);

            _actions.Add(keyCode, action);
            return(button);
        }
예제 #2
0
        public Button AddButton(PopUpButtonMask buttonMask, KeyCode keyCode)
        {
            var button = AddButton(buttonMask);

            _actions.Add(keyCode, Hide);
            return(button);
        }
예제 #3
0
        public Button AddButton(PopUpButtonMask buttonMask, KeyCode[] keyCodes, UnityAction action)
        {
            var button = AddButton(buttonMask, action);

            foreach (var keyCode in keyCodes)
            {
                _actions.Add(keyCode, action);
            }
            return(button);
        }