void CreateTile(Cell cell) { GameObject tile = Instantiate(tileTemplate); BaseTile baseTile = tile.GetComponent <BaseTile>(); baseTile.InitTile(cell, Random.Range(1, Constants.amountOfColors + 1), this); }
void CreateTile(Cell cell) { GameObject tile = Instantiate(tileTemplate); BaseTile baseTile = tile.GetComponent <BaseTile>(); baseTile.InitTile(cell, Random.Range(1, Constants.amountOfColors + 1), this); }