Player Locked Out Of Parrying After a Miss
I'm making a 2D Action game, and am trying to code a parry that goes on a 1 second cooldown if you miss it, but instantly recharges if you land the timing. DashCD is meant to be a timer that either refreshes the parry or goes on a longer cooldown if its missed. However, I've noticed that if you miss the parry, it doesn't let you use it again. I tried to cut the yield return to just directly read the value of parryCD, but then I get an error telling me the coroutine is null. Can anyone help me figure out what's wrong here? < private float parryCD; private bool parryHit = false; private bool can
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.