Пример #1
0
        public bool SetAnimation(string Name)
        {
            Animation animation;
            if (!animations.TryGetValue(Name, out animation))
                return false;

            currentAnimation = animation;
            currentAnimation.CurrentSource = 0;
            Bounding = currentAnimation.Sources[0];
            return true;
        }
Пример #2
0
 public void AddAnimation(Animation animation)
 {
     animations[animation.Name] = animation;
 }