Issues with my Stamina Regeneration Script

Your code is getting cut off. Is part 2 your entire Update?
Post code on the forums with Code tags:

Don’t run FindGameObjectWithTag every update. Grab a reference to it once and reuse it. Also, are you sure pController.isGrounded is getting set back to true when your jump is over?

1 Like