Exemple #1
0
 private void RefreshSelfOnly()
 {
     GridChunk.Refresh();
     if (HexUnit != null)
     {
         HexUnit.ValidateLocation();
     }
 }
Exemple #2
0
 public void Refresh()
 {
     if (GridChunk != null)
     {
         GridChunk.Refresh();
         if (HexUnit != null)
         {
             HexUnit.ValidateLocation();
         }
     }
 }
Exemple #3
0
 void Refresh()
 {
     if (chunk)
     {
         chunk.Refresh();
         if (hexUnit)
         {
             hexUnit.ValidateLocation();
         }
         for (int i = 0; i < neighbors.Length; i++)
         {
             HexCell neighbor = neighbors[i];
             if (neighbor != null && neighbor.chunk != chunk)
             {
                 neighbor.chunk.Refresh();
             }
         }
     }
 }