void OnRenderObject() { if (logNumObjsInHash) { Debug.Log(hash.DEBUG_GetIncludedObjsCount()); } //if (drawCellOutlines && highlightActiveCells) //draw empty cells in blue, draw non-empty cells in cyan if (ControlInputs.Instance.drawCellOutlines && ControlInputs.Instance.highlightActiveCells) { foreach (Vector3Int cell in hash.GetEmptyCells()) { DrawWireCube(GetCellVertices(cell), Color.blue); } foreach (Vector3Int cell in hash.GetNonEmptyCells()) { DrawWireCube(GetCellVertices(cell), Color.cyan); } } //else if (drawCellOutlines) //draw all cells (empty or non-empty) in blue else if (ControlInputs.Instance.drawCellOutlines) { foreach (Vector3Int cell in hash.GetCells()) { DrawWireCube(GetCellVertices(cell), Color.blue); } } //else if (highlightActiveCells) //draw non-empty cells in cyan else if (ControlInputs.Instance.highlightActiveCells) { foreach (Vector3Int cell in hash.GetNonEmptyCells()) { DrawWireCube(GetCellVertices(cell), Color.cyan); } } }