//播放对应动画
 public AnimationControllerComponent PlayAnimation(string name)
 {
     if (animationMap.ContainsKey(name))
     {
         currentAnimation = animationMap[name];
     }
     return(this);
 }
 //增加动画
 public AnimationControllerComponent AddAnimation(string name, AnimationComponent animation)
 {
     animationMap[name] = animation;
     return(this);
 }
 public AnimationControllerComponent(GameObject parent, string name, AnimationComponent firstAnimation)
 {
     animationMap[name]    = firstAnimation;
     currentAnimation      = firstAnimation;
     this.parentGameObject = parent;
 }