Esempio n. 1
0
    private void CreateGameBoard( )
    {
        board = new TicTacToeBoard( );
        cells = new Dictionary <Vector2, GameObject> ( );

        boardState  = board.CreateEmptyBoard(3, 3);
        board.Board = boardState;

        for (int i = 0; i < boardState.Length; i++)
        {
            for (int j = 0; j < boardState[i].Length; j++)
            {
                Vector2 cell = new Vector2(i, j);
                cells.Add(cell, grid.Grid.VertexTable[cell]);
            }
        }
    }