예제 #1
0
 private void UpdateWallsAround(WallPoint wp)
 {
     for (int x = wp.X - 1; x <= wp.X + 1; x++)
     {
         for (int y = wp.Y - 1; y <= wp.Y + 1; y++)
         {
             WallController w = GetWall(new WallPoint(x, y));
             if (w != null)
             {
                 w.UpdateWall();
             }
         }
     }
 }