private void Update() { if (player != null) { float CurrentXVelocity = player.GetVelocity().x; player.AddForce(-new Vector2(CurrentXVelocity * StickyIntensity, 0)); } }