Esempio n. 1
0
    void Awake()
    {
        GameObject levelInfoGO = GameObject.Find("_LevelManager");
        levelManager = (LevelManager) levelInfoGO.GetComponent(typeof(LevelManager));

        gridSize = levelManager.getGridSize();

        grid = new GameObject();
        grid.name = "Grid";
        cells = new List<GameObject>(initialCellsNumber);
        createCells(initialCellsNumber);
    }