コード例 #1
0
 private void GameMove(Direction direction)
 {
     if (gameIsTurnBased)
     {
         game.Move(direction, random);
     }
     else
     // Only the player moves since other movement occurs with timer tick.
     {
         game.PlayerMove(direction);
     }
     UpdateCharacters();
 }