July 2018
Intermediate to advanced
366 pages
7h 48m
English
Now that we have created our Tank GameObject and attached all of the necessary components and scripts to it, we need to make a prefab of it. This is because we will let NetworkLobbyManger spawn our player character, and in order for it to be able to do so, it needs to refer to a prefab that is a representation of your player character.
The NetworkLobbyManager has a Spawn Info section that you can assign the Player Prefab, determine if the NetworkLobbyManager can Auto Create Player and the Player Spawn Method.
There is also a section for Registered Spawnable Prefabs. We need to register all of the GameObjects that will be spawned by the NetworkServer. For instance, the Canon ...