void UpdatePhysicsAndAvatarProperties() { if (isDead && deathCountdown >= 0f) { deathCountdown -= Time.deltaTime; Vector3 v = new Vector3((deathCountdown * physicsVelocity.x) / 3f, physicsVelocity.y, physicsVelocity.z); body.velocity = v; velocity = (deathCountdown * savedVelocity) / 3f; if (deathCountdown < 0f) { deathCountdown = -1f; body.velocity = v; velocity = savedVelocity; avatar.StopParticles(); GameOver(); } } }