- Home /
Question by
arain55 · Aug 07, 2014 at 08:05 AM ·
animationlegacyanimation
question about animation.
so i followed the unity document. http://docs.unity3d.com/420/Documentation/Manual/AnimationScripting40.html
and i wont it so that when i realse the fire 1 button it goes back into idle(i feel like a noobe).
Comment
Answer by thornekey · Aug 07, 2014 at 08:17 AM
Do you want it in C#?
I'm fairly sure mouse 0 is left mouse which is indeed fire1.. SO:
if(Input.GetMouseButtonUp(0)) {
animation.Blend("YourAnimationName");
}
i know java and csharp so doesnt matter i just struggle in animation.and thanks ill try it.
nope doesnt work i think its because this animation is set to layer 1
Your answer