Hi,
My game has many rooms in it, so I just wrote a basic script which is activating and de-activating the gameobjects in a certain room, changed when the player enters/exit a room.
It works, but I honestly have no idea if that’s how this kind of function should be done. (Switching game objects on and off)
Actually, I wasn’t asking about the code part, It’s pretty straight forward - for loop activating the children of the room gameObject.
I was asking whether or not I should even do that in the first place.
I just assumed it is the right thing to do when designing a lot of rooms in one scene.
Maybe It’s better to switch scenes?
Are the de-activated gameObject affect the game?
I honestly have no clue.