private void OnCollisionEnter(Collision collision) { if (collision.collider.CompareTag("Ground")) { canJump = true; } if (collision.collider.CompareTag("Lava")) { isAlive = false; gameFlowController.PlayerLose(); } if (collision.collider.CompareTag("Goal")) { isAlive = false; gameFlowController.PlayerWin(); } }