Added slight tweak to wall running that may make jumping from walls less 'sticky'
This commit is contained in:
@@ -285,6 +285,12 @@ public class PlayerController : MonoBehaviour
|
||||
} else {
|
||||
moveDirection.y = 0.0f;
|
||||
}
|
||||
|
||||
if (Input.GetButtonDown("Jump") && jump <= 1)
|
||||
{
|
||||
moveDirection.y = jumpHeight;
|
||||
wallRunning = false;
|
||||
}
|
||||
}
|
||||
|
||||
velocity.x += moveDirection.x;
|
||||
|
||||
Reference in New Issue
Block a user