コード例 #1
0
        public void Update(GameTime gameTime)
        {
            _animator.Update(gameTime);

            IsOnGround = false;

            if (State == ZombieState.Walking && Math.Abs(Velocity.X) < 0.1f)
            {
                State = ZombieState.Idle;
            }
        }
コード例 #2
0
ファイル: Explosion.cs プロジェクト: sslm74/MonoGame.Extended
 public override void Update(GameTime gameTime)
 {
     _animator.Update(gameTime);
 }