Ejemplo n.º 1
0
    void CreateTile(Cell cell)
    {
        GameObject tile     = Instantiate(tileTemplate);
        BaseTile   baseTile = tile.GetComponent <BaseTile>();

        baseTile.InitTile(cell, Random.Range(1, Constants.amountOfColors + 1), this);
    }