PUN rpc only in scene
Hi guys :) so I have this huge problem. The player can join a online game in the main menu, then I have a rpc that is sent to any player who joins late that the game has started, they then load the specified scene, but in the said scene there is another rpc that is sent to all clients that are late (AllBuffered), that tells the scenemanager to start the game, called ("ConStart"). The problem is that when a player joins the room in the main menu, they receive the "ConStart" rpc that is sent in the scene before they receive the main menu rpc, resulting in a error saying that there is no PhotonView marked with RPC "ConStart". I assume that this is because the script does not exist yet because the scene ha not been loaded. Is there any way to ensure that the main menu rpc is received before any other rpc's? If so, could you please help me? thanks in advance guys :)
$$anonymous$$ight there be a way to set the rpc protocol?
I have further investigated and I found that when a late player joins the game, who was not the master client, and did not create the room, then everything works perfectly. But when the master client leaves and tries to join again this problem happens. It also seems to spawn all things that are spawned in my other scene, for example - blockades and ships are being spawned in my main menu when the master client rejoins the room x_x :{