public Cell(StaticCellType staticCellType, DynamicCellType dynamicCellType, int x, int y) { StaticCellType = staticCellType; DynamicCellType = dynamicCellType; X = x; Y = y; }
public Color GetColorForCell(DynamicCellType dynamicCellType) { if (!_dynamicCellColors.TryGetValue(dynamicCellType, out var cellColor)) { Debug.LogError($"Can't find color for {dynamicCellType}"); return(Color.white); } return(cellColor); }
private ICell FindCell(DynamicCellType dynamicCellType) { for (var i = 0; i < _rowsCount; i++) { for (var j = 0; j < _columnsCount; j++) { if (Cells[i, j].DynamicCellType != dynamicCellType) { continue; } return(Cells[i, j]); } } return(null); }