private void Update() { RenderArrows(); if (transform.position.y > 10 || transform.position.x > 40 || transform.position.x < -20 || transform.position.y < -15 ) { //Implement Overall Level Clamping } if (_birdWasLaunched && GetComponent <Rigidbody2D>().velocity.magnitude <= 0.1 ) { amountOfTimeIdling += Time.deltaTime; } //Instantiate a reset button if (amountOfTimeIdling > 3 && _birdWasLaunched && !uiDialog.isGameOver) { uiDialog.ActivateResetDialog(); } }