Hello there!
Working with Multiplayer for the first time is very difficult for me, it’s very hard to wrap my head around the new concepts and things like what should run on the client and what should run on the server and that kind of stuff, so I apologize in advance if these questions are a bit silly.
-
What is allocation? In the lecture “Allocating a Relay” Nathan talks about creating an allocation and in fact, that’s the first thing that is done when starting the host on the HostGameManager class, but I’m not sure I understand what are we doing here. To me, allocation sounds like reserving space (reminiscent of memory allocation maybe?) but I’m not sure if I should think about the concept this way.
-
At the end of the StartHostAsync method we use this line to go to the game scene:
NetworkManager.Singleton.SceneManager.LoadScene(gameSceneName, LoadSceneMode.Single);
But in a previous lecture, we used a pretty normal
SceneManager.LoadScene(MenuSceneName);
to go from the Netbootstrap scene to the Main Menu scene
So my question is why? and especially when should we use one over the other?
Thanks! This is an excellent course, by the way, Nathan is a great teacher