public void AnimateObject(string animname)
        {
            AnimationClip clip;

            if (AnimationInfo.FindByName(animations, animname, out clip))
            {
                //we actually dont need the clip
                //we only check the name to make sure there was an
                //animation with that name.

                //All we have to do is play the animname
                animatorComponent.Play(animname);
            }
        }