Interupting timer causes the next attack to stop the script
Alright, I'm pretty new to Unity and I've been struggling with making a charged attack.
I'm making a 2D fighting game and want to implement an attack where player has to hold a key for desired time before he does the attack. The code and the charged attack works just fine, however when the player interrupts the charging mechanism (doesn't finish) interesting stuff happen.
He can still move and block attacks and charge again but if he uses normal/light attack the whole combat mechanism cuts off. Key being pressed for the light attack is registered but stops there. (If the player interrupts charging but then charges again until finish, light attack works finely).
I've been pulling my hair for two days straight and couldn't figure out a solution, please help!
Your answer
Follow this Question
Related Questions
OnTriggerExit does not work 0 Answers
Error CS1525: Unexpected symbol 'void' 1 Answer
CAMERAS ERROR , I NEED HELP 0 Answers
,Unity tutorial's script doesn't work! 2 Answers
Words in my script don't turn blue, why not? (absolute script noob) 3 Answers