From the course: Unity 5: Network Gaming

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up the Network Manager

Set up the Network Manager - Unity Tutorial

From the course: Unity 5: Network Gaming

Start my 1-month free trial

Set up the Network Manager

- [Instructor] The first step in making this into a network-enabled multiplayer game is to add a few components to the Game Manager, which at this stage we don't have. So let's start by adding an empty game object. In the Hierarchy, I'll right-click, select Create Empty. Make sure that you didn't make it inside the Tank, we want it outside, and I'm going to change this to GameController for the name. I'll go ahead and change the Tag to GameController, and now we've got the basics for a Game Controller that would usually host scripts for us. In this case we're going to add a few components, so I'm going to select Add Component. Type in Network to filter, and we're looking for NetworkManager about halfway down. I'll go ahead and add that one, and I'm also going to need another one. I might as well go ahead and add it too. I'm going to select Add Component and find NetworkManagerHUD, and I'll add that one. Let's look at what we've added in more detail, beginning with the NetworkManager…

Contents