Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        GameObject boardContainer = Generator.Generate(cell, numberOfRows, numberOfColumns);

        GameObject[] cellList = FindByTag("Cell");
        map = fillMap(cellList);
        Placer.PlaceEnemies(cellList, numberOfMines, mine);
        Labeller.Label(map, numberOfRows, numberOfColumns);
        flaggedCells  = 0;
        totalCells    = numberOfRows * numberOfColumns;
        revealedCells = 0;
        gameOver      = false;
        boardRevealed = false;
        gameWon       = false;
    }