I want to play an animation on keypress any idea how I tried this but it didnt work I had all the components in the correct place.
Script (part of it)
function Update () {
if(Input.GetMouseButtonDown(1))
AnimationClip.play("recoil")
}
Please correct that script thanks!
↧