I'm using a raycast to determine if my player is in air or not
How can I check if my character is in air for 5 seconds before switching to another state
I'm using a raycast to determine if my player is in air or not
How can I check if my character is in air for 5 seconds before switching to another state
Copyright © 2021 Jogjafile Inc.
Add two new variables.
When you do the raycast, set InAir to true if you're in air, false if you're not. Then in update, do this: