public void Refresh() { if (parentChunk) { parentChunk.Refresh(); for (int i = 0; i < neighbors.Length; i++) { SquareCell neighbor = neighbors[i]; if (neighbor != null && neighbor.parentChunk != parentChunk) { neighbor.parentChunk.Refresh(); } } } }
public void Refresh() { RefreshPosition(); chunk.Refresh(); }