Exemple #1
0
        private void figureIsSelected()
        {
            PositionToMove positionToMoveTile = getPressedPositionToMove(posX, posY);

            if (positionToMoveTile != null)
            {
                FigureMoveScript.makeMove(posX, posY, boardScript, gameManager);
            }
            FigureMoveScript.UnselectFigure(gameManager, boardScript);
        }
 public void UndoMove()
 {
     FigureMoveScript.UnselectFigure(this, boardScript);
     FigureMoveScript.undoMove(boardScript, this);
 }