I have a character, you can say it’s an inspector… My Question is how do I animate the guy when I click with the mouse button. I did try in javascript
function OnMouseOver () {
if (Input.GetMouseButtonDown(0)) {
animation.Play(“CHECK”);
}
}
but my problem is that it only plays when i have the mouse button down, when I release it, its stops. I want my whole animation to play and not just a part of it.
Please help me out…