private void Update() { if (!isAlive) { ph.DeathAnimation(); } else { Movement(); GroundedTimer(); SetFriction(); Jumping(); ph.Cooldown(); } if (isAlive && transform.position.y < -2f) { ph.Die(); } }