This question was
closed Jan 20, 2017 at 08:27 PM by
HenryStrattonFW for the following reason:
Duplicate of question posted one hour later by same user. http://answers.unity3d.com/questions/1301606/how-do-i-make-a-ui-button-play-animation.html
How do I make a UI Button play an animation?
So I'm trying to make a mobile fighting game, and I had an idea of using custom UI buttons to make it play the animations for punching and kicking, can tell how to do it. I tried using,gameObject.GetComponent().Play ();... All that kinds of stuff but nothings going, any help?
Comment