예제 #1
0
 public void MoveBody(SnakeHead head)
 {
     snakeBodyX.Dequeue();
     snakeBodyX.Enqueue(head.GetSnakeHeadX());
     snakeBodyY.Dequeue();
     snakeBodyY.Enqueue(head.GetSnakeHeadY());
 }
예제 #2
0
 public void IncreaseBody(SnakeHead head)
 {
     snakeBodyX.Enqueue(head.GetSnakeHeadX());
     snakeBodyY.Enqueue(head.GetSnakeHeadX());
 }