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