How do you play animations that are in the animations part of the animation component
This is my code
var punch:AnimationClip;
function Update(){
if(Input.GetMouseButtonDown(0)){
gameObject.PlayAnimation(punch);
}
}
For some Reason punch.Play() and gameObject.PlayAnimation(punch); does not work please help. Also its from blender so I don’t know if that effects anything.