// Update is called once per frame void Update() { gimOver(playerHealth.getHealth()); if (Input.GetKey(KeyCode.Z) && isGrounded == true) { rb.velocity = Vector2.up * jumpVelocity; } //exit if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } }