I ve got Menu scene and Level1 scene. The Level1 scene has few rpc functions and OnConnectedToServer function which spawn player object. The menu scene has connect button with Network.Connect script and also OnConnectedToServer function that loads Level1 scene. Is there a way that OnConnectedToServer from Menu scene will execute before OnConnectedToServer from Level1 scene and before rpc functions from Level1
Spawn it on the other scene’s script to do this just write DontDestroyOnLoad(gameObject); (not sure if its exactly like this) and load the scene and spawn the player.