public override void Update() { if (InputController.Instance.IsWaitingForInput) { if (InputController.Instance.CheckForInput()) { if (lastClickedInputButton != null && lastClickedInputInfo != null) { lastClickedInputButton.Text = lastClickedInputInfo.GetInfo(); inputPanel.SetActive(true, true); } } } }
public void OnDeleteInputButtonClicked(UIButton button, InputInfo info) { InputController.Instance.DeleteKeyBind(info); button.Text = info.GetInfo(); }