public void SetCell(int r, int c, bool closed) { if (r >= 0 && r < height && c >= 0 && c < width) internalCells [CellIndex (r, c)].Closed = closed; else throw new UnityException ("Cell access out of range."); }