Quantcast
Channel: Questions in topic: "gun"
Viewing all articles
Browse latest Browse all 592

Play Animation on keypress?

$
0
0
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!

Viewing all articles
Browse latest Browse all 592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>