When I use Input.GetKeyDown in the Ability's Update method,sometimes it doesn't work.

Willwlh

New member
I only used the X button 35 times, and it didn't trigger 14 times in the Ability Update.
This will cause my abilities to not trigger in time.How to solve it.

1610182114120.png
 
Make sure you are updating your character within the Update loop rather than FixedUpdate.
 
Make sure you are updating your character within the Update loop rather than FixedUpdate.
I'm sure updating in the Update loop,not in FixedUpdate.
It's OK now ,I used the MonoBehavior's Update loop instead of Ability's update loop.
 
Top