Hi,
I’m using a script OnTriggerEnter attached to an invisible box that is positioned in a room: when I entered this room with the player i read correctly “Entered room number 1”. It works, but my question is: if I have 20 rooms, should I have 20 scripts attached to relatives trigger rooms? Or is it a smarter mode, a script attached to the player that interact with various triggers?
Thanks!
It seems like you would, just have to change the room number in each script… I would like to see a better solution to this myself .