// Update is called once per frame void Update() { // If user hit the enter key, close the popup. if (isReady && (Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter))) { animator.SetTrigger("Enter"); AudioController.Confirm(); } }