private void DrawGridClear() { // Iterate over XY dimensions for (int y = 0; y < grid.height; y++) { for (int x = 0; x < grid.width; x++) { // Draw default wire grid CustomGizmos.DrawWireSquare(GetWorldPosition(x, y) + new Vector3(0.5f, 0.5f, 0.0f), Vector3.one * grid.cellSize, Color.white, Color.clear, ""); } } }
private void DrawGridAirSealed() { // Iterate over XY dimensions for (int y = 0; y < grid.height; y++) { for (int x = 0; x < grid.width; x++) { // Draw grid indicating air sealed spaces if (StaticMaps.worldTileData[x, y].IsSealed()) { CustomGizmos.DrawWireSquare(GetWorldPosition(x, y) + new Vector3(0.5f, 0.5f, 0.0f), Vector3.one * grid.cellSize, Color.white, new Color(0.0f, 0.0f, 0.75f, 0.4f), ""); } else { CustomGizmos.DrawWireSquare(GetWorldPosition(x, y) + new Vector3(0.5f, 0.5f, 0.0f), Vector3.one * grid.cellSize, Color.white, Color.clear, ""); } } } }
private void DrawGridBuildingBlocked() { // Iterate over XY dimensions for (int y = 0; y < grid.height; y++) { for (int x = 0; x < grid.width; x++) { // Draw grid indicating tiles which cannot be built upon if (StaticMaps.worldTileData[x, y].GetCanBuildUpon()) { CustomGizmos.DrawWireSquare(GetWorldPosition(x, y) + new Vector3(0.5f, 0.5f, 0.0f), Vector3.one * grid.cellSize, Color.white, Color.clear, ""); } else { CustomGizmos.DrawWireSquare(GetWorldPosition(x, y) + new Vector3(0.5f, 0.5f, 0.0f), Vector3.one * grid.cellSize, Color.white, new Color(0.75f, 0.0f, 0.0f, 0.4f), ""); } } } }