I´m very new to Unity and want to make a 2D platformer like Mario with Tilemaps. But I can´t figure out how to manipulate a specific tile in a tile map. Like when the Player hits a Block that only the one Block disappears or just collect one Coin. I have separate tilemaps for these Blocks. So I want something like this…
void OnTriggerEnter2D(Collider2D col)
{
coin = col.gameObject;
points += 1;
coin.setActive(false);
}