Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb8713b28d | ||
|
|
4c52fc32db | ||
|
|
7894befefa |
@@ -44,6 +44,13 @@ public class PlayerController : MonoBehaviour
|
|||||||
extraJump = true;
|
extraJump = true;
|
||||||
moveDirection.y = 0.0f;
|
moveDirection.y = 0.0f;
|
||||||
|
|
||||||
|
if(Input.GetKey(KeyCode.LeftShift))
|
||||||
|
{
|
||||||
|
moveDirection = (moveDirection.normalized * speed/2);
|
||||||
|
} else {
|
||||||
|
moveDirection = moveDirection.normalized * speed;
|
||||||
|
}
|
||||||
|
|
||||||
if (Input.GetButtonDown("Jump"))
|
if (Input.GetButtonDown("Jump"))
|
||||||
{
|
{
|
||||||
moveDirection.y = jumpSpeed;
|
moveDirection.y = jumpSpeed;
|
||||||
|
|||||||
Reference in New Issue
Block a user