Add player side modifaier
This commit is contained in:
parent
17747d23cc
commit
bc2832095e
@ -82,7 +82,7 @@ public class PlayerController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
float curSpeedX = canMove ? (currentSpeed + modifier) : 0;
|
float curSpeedX = canMove ? (currentSpeed + modifier) : 0;
|
||||||
float curSpeedY = canMove ? speed * Input.GetAxis("Horizontal") : 0;
|
float curSpeedY = canMove ? (speed + modifier) * Input.GetAxis("Horizontal") : 0;
|
||||||
|
|
||||||
moveDirection = (platformForward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime);
|
moveDirection = (platformForward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user