void Update() { float score = gpc.GetScore(); if (rb.velocity.y > 0 && transform.position.y > score) { gpc.SetScore(transform.position.y); } if (rb.velocity.y < -15f) { PlayerDie(); } }