Launching CurrentRoom.SetCustomProperties appears to relaunch every script

Hi everyone!

First of all, sorry for my bad english.

I Need to save a dictionary<string,int> inside the custom properties of a room.

When the first user join, everything works correctly, but when a second player join the room every script keeps relaunching itself indefinitely, starting from the Awake() function.

When i disable the SetCustomProperties function everything works again.

Got some ideas about what could be causing it?

Answers

  • I have no idea.
    This will be entirely up to your code, so sadly you have to figure this out.