Пример #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
 public override void Update(GameTime gameTime)
 {
     _animator.Update(gameTime);
 }