public static void ChessBoardSegmentButtonPressed(BoardSegment newSelection) { _selectionIcon.position = newSelection.segment.transform.position; _previousSegmentSelection = _currentSegmentSelection; _previousSegmentSelection.SetSelection(false); _currentSegmentSelection = newSelection; }
public void Initialise() { _chessPieceManager = GameManager.instance.chessPieceManager; _selectionIcon = GameManager.instance.selectionIcon; InitialiseSegments(); InitialiseChessPieceMoves(); SetPiecesInitialPositions(); //Setting variables so theyre not null on first move _previousSegmentSelection = GameManager.instance.board.segments[12]; //DELETE??? _currentSegmentSelection = GameManager.instance.board.segments[12]; chessPieceSelection = _chessPieceManager.pawnsWhite[0]; }
public BoardSegment ReturnNorthWestSegment(BoardSegment originalSegment) { return(segments[originalSegment.segmentIndex + Columns + 1]); }
public BoardSegment ReturnSouthWestSegment(BoardSegment originalSegment) { return(segments[originalSegment.segmentIndex - Columns - 1]); }
public BoardSegment ReturnWestSegment(BoardSegment originalSegment) { return(segments[originalSegment.segmentIndex - 1]); }