Пример #1
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     EnemyModel.Update(gameTime);
     //ItemMovement
     if (HasStartedMoving == 1)
     {
         //Only move left ONCE.
         HasStartedMoving++;
         if (NumOfEnemies > 0)
         {
             //Add the item to the collision grid and move the item
             EnemyModel = EnemyModelFactory.GetEnemyModel(EnemyType, Position, Velocity);
             //EnemyModel.Move(Position, false);
             EnemyModel.IsVisible = true;
             CollisionGrid.AddCollidable(EnemyModel);
             //If items still exist inside brick, bump the brick.
             CurrentState.ExplodedTransition();
             NumOfEnemies--;
         }
     }
 }