Animator. SetInteger (" Action ", 1);//ability
if (! The mount)
{
Animator. SetInteger (" Action ", 2);//ready state
}
The else {
Animator. SetInteger (" Action ", 3);//the mount state
}
CodePudding user response:
With the switch doesn't work, a total of three states, case different state control not value, value defined in the externalCodePudding user response:
Quotes is Action, not ActionCodePudding user response:
You code above, the Action can only be equal to 2 or 3, will never be equal to 1, can ability to blame,