|
So when I have localmotion disabled everythign works fun, but whne its on my characters head just spins(insanely) and never goes back to localmotions walking and idle animations. I herd I want to crossfade back to localmotion possibly? my scriptfunction Update () { PlayAttackAnim(); } function PlayAttackAnim() { if(Input.GetMouseButtonUp(0)) { animation.Play("attack1"); } else if(Input.GetMouseButtonUp(1)) { animation.Play("attack2"); } else if(!animation.IsPlaying("attack1") && !animation.IsPlaying("attack2")) { animation.Play("Idle"); } }
(comments are locked)
|
