Example #1
0
 private void DrawModifier(CellDataMin cellDataMin)
 {
     var cellPosition = cellDataMin.CellPosition;
     var prefab       = GetCellFullConfig(cellDataMin.CellConfigMin).Prefab;
     var go           = _grid.DrawModifier(cellPosition, prefab,
                                           CellInfoHelper.IsRotatableCell(cellDataMin.CellConfigMin.CellType, cellDataMin.CellConfigMin.CellSubType));
 }
Example #2
0
    private void DrawCell(CellDataMin cellDataMin)
    {
        var cellConfigMin = cellDataMin.CellConfigMin;
        var cellPosition  = cellDataMin.CellPosition;
        var prefab        = GetCellFullConfig(cellConfigMin).Prefab;
        var go            = _grid.DrawCell(cellPosition, prefab, CellInfoHelper.IsRotatableCell(cellConfigMin.CellType, cellConfigMin.CellSubType));

        go.GetComponent <CellView>().SetDebugText(cellDataMin.CellPosition.x + "," + cellDataMin.CellPosition.y);
    }