Question by
Adityaunity3d · Sep 18, 2016 at 11:24 PM ·
animationkeypress
How to Play 2 Animation with Single Keypress ? I need Very Simple Script C#
How can I play Animation after another animation is finished with Single Keypress. I Mean If i Press Space Key Jump animation is work perfect but after jump finish Jump I want the Idle Animation play automaticly after Jump Finished.
if (Input.GetKeyDown (KeyCode.Space))
GetComponent<Animation> ().Play ("Player_Jump");
else if (GetComponent<Animation> ().Play ("Player_Idle"));
Comment
Your answer
Follow this Question
Related Questions
Play fbx animation on trigger and keypress 0 Answers
Play animation once (when down key pressed) in c# 1 Answer
how to stop an animation at a specific frame on animator? 1 Answer
Selecting animation to play based on boolean 1 Answer
How can I stop my character from walking during the attack animation? 1 Answer