예제 #1
0
 private void CheckTile()
 {
     if (road != null)           //On the way back
     {
         road.AddTile(tile);
         if (tile == Goal)
         {
             Destroy();
         }
     }
     else             //On the way to create a town
     {
         if (tile == Goal)
         {
             CreateTown();
         }
     }
 }