void SetCell(BoardPosition position, BoardCell cell) { var matrixCoords = BoardPositionToMatrixIndices(position); this.cells[matrixCoords.Item1, matrixCoords.Item2] = cell; }
/// <summary> /// To be used only by BoardCell. /// Sets the reference of this content to a new cell. /// DOES NO FURTHER PROCESSING LIKE UPDATING THE CELL CONTENT. /// </summary> /// <param name="cell">The destination cell.</param> public void SetCell(BoardCell cell) { this._cell = cell; this.transform.SetParent(cell.Transform, false); }