Gone through the comments and Seen issues
Have taken all fixes and suggestions and created a new project
*added layer mask for complex environment
*change the way jump height from ground is detected. @Siddharth Gupta simple fix
*added LeftShift for a walk and run speed transition * suggested by all LOL
*added single and double jump (handled by a coroutine) accounts for the initial press and secondary press of KeyCode.Space
*removed OnGui() just too slow for input
*change playerIsJumping update on frame input was received with GetKeyDown
There is more that needs updating like climbing slopes which there is a minor bug I discovered and
needs fixing
The redone script alone:
https://drive.google.com/open?id=1-82...
The Redone Project:
if you want to see setup:
https://drive.google.com/open?id=1odU...
I will be adding more to it.
project presented in this video:
add: [RequireComponent(typeof(Rigidbody))] above PlayerMovement class.
Project: https://github.com/tkggames/Simple-Ri...
~-~~-~~~-~~-~
Please watch: "CSES problem #4: Increasing Array"
• CSES problem #4: Increasing Array
~-~~-~~~-~~-~