public Button AddButton(PopUpButtonMask buttonMask, KeyCode keyCode, UnityAction action) { var button = AddButton(buttonMask, action); _actions.Add(keyCode, action); return(button); }
public Button AddButton(PopUpButtonMask buttonMask, KeyCode keyCode) { var button = AddButton(buttonMask); _actions.Add(keyCode, Hide); return(button); }
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); }