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 - Unity Tutorial
From the course: Unity 5: Network Gaming
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Project overview3m 15s
-
(Locked)
Set up the Network Manager2m 11s
-
(Locked)
Network identity3m 1s
-
(Locked)
Testing the game3m 46s
-
(Locked)
Network transform6m 58s
-
(Locked)
The local player6m 26s
-
(Locked)
Instantiate projectiles6m 58s
-
(Locked)
Firing projectiles6m 5s
-
(Locked)
Multplayer projectiles5m 2s
-
(Locked)
Adding a health indicator, part 12m 53s
-
(Locked)
Adding a health indicator, part 23m 44s
-
(Locked)
Adding a health indicator, part 34m 46s
-
(Locked)
Multiplayer health5m 54s
-
(Locked)
Fragging the enemy5m
-
(Locked)
Respawning6m 14s
-
(Locked)
-