public void SetHotkey(KeyCode hotkey) { this.hotkey = hotkey; this.hotkeyBadge.gameObject.SetActive(true); this.hotkeyText.text = KeyCodes.GetLabel(this.hotkey); }
public void Construct(DialogueAction action, KeyCode hotkey) { this.action = action; this.hotkey = hotkey; this.text.text = $"{KeyCodes.GetLabel(this.hotkey)}. {this.action.Text}"; }
protected override void OnPointerEnter() { Tooltip.Instance.Show( $"[{KeyCodes.GetLabel(this.hotkey)}] {I18N.Instance.Get(this.tooltipKey)}", GetComponent <RectTransform>()); }