|
@@ -527,11 +527,12 @@ public class Demonic : MoveCharacter
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- vel += Vector3.up * extraFallGravity * Time.deltaTime;
|
|
|
|
|
|
|
+ vel.y += extraFallGravity * Time.deltaTime;
|
|
|
|
|
+ vel.x -= vel.x * decelerationRatio * Time.deltaTime;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- vel.y = vel.y * (1 - decelerationRatio * Time.deltaTime);
|
|
|
|
|
- vel.x = vel.x * (1 - decelerationRatio * Time.deltaTime);
|
|
|
|
|
|
|
+ //vel.y = vel.y * (1 - decelerationRatio * Time.deltaTime);
|
|
|
|
|
+ //vel.x = vel.x * (1 - decelerationRatio * Time.deltaTime);
|
|
|
rb.velocity = vel;
|
|
rb.velocity = vel;
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|