コード例 #1
0
    void Initialize()
    {
        MathController.ClearNumberOfMoves();
        board = MathController.GetBoard_5x5_2();

        for (int i = 0; i < board_rows.Length; i++)
        {
            for (int j = 0; j < board_rows[i].cols.Length; j++)
            {
                int        num = board.numbers[i, j].number;
                GameObject obj = board_rows[i].cols[j];
                ButtonBoxController(obj).SetNumberAndCoordinates(num, i, j);
            }
        }
        SetColumns(board.col_numbers);
        SetRows(board.row_numbers);
    }