I have a conditional if then statement running where I want the animations to change if a certain condition is met. For some reason when it starts, the correct animation plays, but when it is changed the animation doesn't change. The code is running in LateUpdate(). I made a hack to test the changing of the animations and it won't work either.
Everything I have read says to use SetAnimation and it will over ride the previous animation, but this doesn't seem to be working. Here is the code to hack that result I want.
rightCrowdMemberAnimation.state.SetAnimation (0, "idle_07", true);
if (Input.GetKeyDown (KeyCode.A)) {
rightCrowdMemberAnimation.state.SetAnimation (0, "yay_07", true);
}
Thanks for the help.
What is weird is that the in the inspector it says that the animation has changed, but visually it hasn't changed.