private void RefreshSelfOnly() { GridChunk.Refresh(); if (HexUnit != null) { HexUnit.ValidateLocation(); } }
public void Refresh() { if (GridChunk != null) { GridChunk.Refresh(); if (HexUnit != null) { HexUnit.ValidateLocation(); } } }
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(); } } } }