Reset() public méthode

public Reset ( ) : void
Résultat void
Exemple #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();
         }
     }
 }
        public object Clone()
        {
            var animationClone = new Animation(this)
            {
                frameWidth = this.frameWidth, frameHeight = this.frameHeight
            };

            animationClone.Reset();

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

            animationClone.Reset();

            return animationClone;
        }