So basically I just call the WaitForSeconds, and I always get the error
if(Input.GetKey("q")) {
anim.SetBool("Action1", true);
yield WaitForSeconds(5);
anim.SetBool("Action1", false);
}
This is the error:
Assets/Game/Player/Scripts/PlayerMovement.cs(30,45): error CS1525: Unexpected symbol (', expecting
)‘, ,',
;’, [', or
=’
I am not sure how to fix this.