Animation animation;
//1.先更具动画片段名称 获取到动画 状态
AnimationState animState = animation[animName];
//2.设置动画状态为激活
animState.enabled = true;
//设置权重为1
animState.weight = 1;
//停留第一帧
animState.normalizedTime = 0;
//停留最后一帧
//animState.normalizedTime = 1;
//Sample动画
animation.Sample();
//设置AnimationState为未激活状态
animState.enabled = false;