Exemple #1
0
 public void switchAnimation(String animation)
 {
     this._currentAnimation.Reset();
     this._currentAnimation = this._animations[animation];
 }
Exemple #2
0
        public void Update(GameTime gameTime)
        {
            if(_animations.Count > 0){

                if (!this.Initialized)
                    this.Initialize();

                if(_currentAnimation == null)

                    _currentAnimation = _animations.Values.First();//_animations.First();

                _currentAnimation.Update(gameTime);
            }
        }
Exemple #3
0
 public void addAnimation(String key, Animation animation)
 {
     this._animations.Add(key, animation);
 }