|
@@ -310,7 +310,14 @@ public class AttributeStatus : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- vel.x -= decelerationRatioX * Time.deltaTime;
|
|
|
|
|
|
|
+ if(vel.x > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ vel.x -= decelerationRatioX * Time.deltaTime;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ vel.x += decelerationRatioX * Time.deltaTime;
|
|
|
|
|
+ }
|
|
|
vel.y -= decelerationRatioY * Time.deltaTime;
|
|
vel.y -= decelerationRatioY * Time.deltaTime;
|
|
|
isFly = true;
|
|
isFly = true;
|
|
|
}
|
|
}
|