Example #1
0
 void Refresh()
 {
     if (chunk)
     {
         chunk.Refresh();
         for (int i = 0; i < neighbors.Length; i++)
         {
             HexCell neighbor = neighbors[i];
             if (neighbor != null && neighbor.chunk != chunk)
             {
                 neighbor.chunk.Refresh();
             }
         }
     }
 }
Example #2
0
 private void Refresh()
 {
     if (chunk)
     {
         chunk.Refresh();
         for (int i = 0; i < neighbors.Length; i++)
         {
             var neighbor = neighbors[i];
             if (neighbor != null && neighbor.chunk != chunk)
             {
                 neighbor.chunk.Refresh();
             }
         }
         if (Unit)
         {
             Unit.ValidateLocation();
         }
     }
 }