Reset() public method

public Reset ( ) : void
return void
Esempio n. 1
0
 public void Update(GameTime gameTime)
 {
     if (_controlable)
     {
         if (_isAnimating)
         {
             _animations[_currentAnimation].Update(gameTime);
         }
         else
         {
             _animations[_currentAnimation].Reset();
         }
     }
     else
     {
         if (_isAnimating)
         {
             _animation.Update(gameTime);
         }
         else
         {
             _animation.Reset();
         }
     }
 }
Esempio n. 2
0
        public object Clone()
        {
            var animationClone = new Animation(this)
            {
                frameWidth = this.frameWidth, frameHeight = this.frameHeight
            };

            animationClone.Reset();

            return(animationClone);
        }
Esempio n. 3
0
        public object Clone()
        {
            var animationClone = new Animation(this) { frameWidth = this.frameWidth, frameHeight = this.frameHeight };

            animationClone.Reset();

            return animationClone;
        }