public void Initialize() { tileType = TilesManager.RandomizeTileType(); tileSprite = TilesManager.AddTypeSprite(tileType); GetComponent <SpriteRenderer>().sprite = tileSprite; }
public void Initialize() { tileType = TilesManager.RandomizeTileType(); tileSprite = TilesManager.AddTypeSprite(tileType); GetComponent <SpriteRenderer>().sprite = tileSprite; }