// If the player enters a room, that room is set as the active room //This is used for camera control and spawning enemies void Update() { if (playerInside) { all.setActiveRoom(this.gameObject); } }