Repair side move

This commit is contained in:
haitem 2022-01-29 21:36:42 +01:00
parent 3eb64a5b95
commit 2768930e01
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class PlayerController : MonoBehaviour
}
float curSpeedX = canMove ? (currentSpeed + modifier) : 0;
float curSpeedY = canMove ? (speed + modifier) * Input.GetAxis("Horizontal") : 0;
float curSpeedY = canMove ? (currentSpeed + modifier) * Input.GetAxis("Horizontal") : 0;
moveDirection = (platformForward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime);