Scene keeps reloading on PlayerEnter

Need some help understanding syncing. Whenever a new player joins the level, all game objects in the scene gets destroyed and reloaded. My code is based off the official PUN tutorial. Please help. I wish to retain all game objects in the scene whenever a player joins the network/room. This is preventing me from assigning a joystick to both player clients as the 2nd player that enters will end up with a joystick while the first will always end up losing connection to the joystick whenever a player joins the room. I have already debug and can confirm that everything, including the game manager and joystick are being destroyed and reloaded upon new player entering the room.

Comments

  • To add on, I have already removed the extra scenes such as room for 1 room for 2 etc. No matter how many players, I'm loading them directly into my Game Level scene upon clicking join.