コード例 #1
0
    private void InitBoard()
    {
        foreach (BoardSquare sq in FindObjectsOfType <BoardSquare>())
        {
            boardArray.Add(sq.name, sq); //We will want to use boardArray to check moves/squares
        }
        List <Piece> whiteArmy, blackArmy;

        whiteArmy = pieceFactory.getPlayerArmy(true);
        blackArmy = pieceFactory.getPlayerArmy(false);
        assignSquares(whiteArmy, true);
        assignSquares(blackArmy, false);
        MoveCalc.InitStatus(boardArray);
    }