예제 #1
0
 public void NextBrick()
 {
     CurrentBrick = _bricksQueue.Dequeue();
     EnqueueNewBrick();
     CurrentBrick.RestartPosition(_random.Next(CurrentBoard.Width - CurrentBrick.Width));
     if (CurrentBoard.IsColliding(CurrentBrick, 0, 0))
     {
         Alive = false;
     }
 }