Added slight tweak to wall running that may make jumping from walls less 'sticky'

This commit is contained in:
Gregory Campbell
2020-02-04 23:14:53 -05:00
parent b466348d50
commit 9429902b7a
+6
View File
@@ -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;