protected virtual void ChangeDirection(float x)
 {
     if (!inOutLimits)
     {
         walk.SetHorizontalMove(x);
     }
 }