Reset() public method

public Reset ( ) : void
return void
示例#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();
         }
     }
 }
示例#2
0
        public object Clone()
        {
            var animationClone = new Animation(this)
            {
                frameWidth = this.frameWidth, frameHeight = this.frameHeight
            };

            animationClone.Reset();

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

            animationClone.Reset();

            return animationClone;
        }