From 9429902b7a35a41cda8bdf175b917e737daa02bc Mon Sep 17 00:00:00 2001 From: Gregory Campbell Date: Tue, 4 Feb 2020 23:14:53 -0500 Subject: [PATCH] Added slight tweak to wall running that may make jumping from walls less 'sticky' --- Assets/Scripts/PlayerController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 0b2dcb2..9d014fa 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -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;