Click with avatar

public class WalkTap : MonoBehaviour, IInputClickHandler
{
private Animator _animator;

void Start()
{
GameObject avatar = GameObject.Find(“Walk”);
_animator = avatar.GetComponent();
}

public void OnInputClicked(InputClickedEventData eventData)
{
_animator.Play(“Walk”);
eventData.Use();
}
}

I have Avatar and working animator. When I put this script to sphere, avatar start to walk in click. But with avatar this script does not work. Is there something special to do before click works with avatar?

If your OnInputClicked is not occurring you are probably missing a collider on the avatar.