private void Update() { if (Input.GetAxisRaw("Player1_Vertical") > 0.2) { buttons[0].Select(); } else if (Input.GetAxisRaw("Player1_Vertical") < -0.2f) { buttons[1].Select(); } if (Input.GetButtonDown("Player1_Confirm")) { ButtonUI.OnClickActive(); } }