Answer by TheDarkRager · Mar 01, 2016 at 02:19 AM
I can't tell if you're saying you can find an answer or you can't. But in going to answer anyway. If you're using unity 5 on in going to say any Windows correct me if I'm wrong (i use Windows 10) the script would be
function Update() { If(Input.GetButtonDown("what button you want")) { GetComponent.().Play("name of your animation"); } }
Your answer
![](https://koobas.hobune.stream/wayback/20220612062509im_/https://answers.unity.com/themes/thub/images/avi.jpg)