Im using collision flags to detect if the character is on the ground or in the air, if the character is on the ground then the Jumping variable is false else its true. If its true then I play the jumping up animation and when it turns false then play the landing animation, now the problem is the landing animation keeps on playing after every 2 or 3 seconds. How can I make the animation play only after the character has landed and not every 2-3 seconds?
second question, is it possible to use 1 if statement to do multiple things? for example
If (Input.GetKey("s"))
animation.Play ("WaveHand")
Waved == true;
gameObject.Find ("Door").animation.Play("Open")
Make all the above happen just by pressing āsā?