Animation Won't Play

I need an animation to play on a parent object. I’ve set it all up but it won’t play there is no errors or anything it just won’t play! The animation is called shoot_m14.

function Update () {

if(Input.GetMouseButton(0)){

transform.parent.animation.Play("shoot_m14");

Thanks is advance!!!

1 Answer

1

first use Input.GetMouseButtonDown(0) instead of Input.GetMouseButton(0)

add your animations to your animation component array

dont do any retargetting