Question about tilemap system

So I am making rogue like game in unity and I wanted to make spawn room to the most left tile and the boss room to the most right room the older coder of this project did the spawning room but I cant figure out how to detect the most right tile after some research I managed to get the x y position of the most right tile but cant connect it to the Gameobject for example in this picture it gets the spawn room in there I got the x y coordinate but cant use that to check which tile it is by the coordinate and put it into an game object. [182959-ekran-alıntısı.png|182959]

Hi @efekenankocc ! What you need to do is create an empty GameObject of which you add a collider component like BoxCollider2d to the position of the boss’s room and then add the “BossRoom” tag to the GameObject.

public class Player : MonoBehaviour
{
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.CompareTag("BossRoom"))
        {
            // Do something
        }
    }
}