Example #1
0
    public void SetLevel(string levelFileName)
    {
        GameController.gameController.levelName = levelFileName;
        LoadLevel loadLevel = gameObject.GetComponent <LoadLevel>();

        GameController.gameController.numOfRows = loadLevel.GetLevelRows(levelFileName);
        GameController.gameController.numOfCols = loadLevel.GetLevelCols(levelFileName);
    }