This commit is contained in:
2022-01-29 21:46:58 +01:00
3 changed files with 3 additions and 3 deletions

View File

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