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