Repair prefabs and edit side speed

This commit is contained in:
haitem committed 2022-01-29 21:45:56 +01:00
1 parent 2768930e01
commit 7ac04aa689
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ public class PlayerController : MonoBehaviour
}
float curSpeedX = canMove ? (currentSpeed + modifier) : 0;
float curSpeedY = canMove ? (currentSpeed + modifier) * 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);