0

Good day,

I'm new to Unity Networking Server/Client.

I want to build a game that has a lobby then players can enter to the room set ready then start the game.

I want to know how can I start networking this client to server.

Thank you.

  • Welcome, please try to make your question as clear as possible, as you are asking about difference between 2 methods, and "how to"... – Adrien Leravat Mar 20 '17 at 13:34
  • Try the NetworkLobbyManager (not so bad official example on asset store) – FLX Mar 21 '17 at 11:02
  • Hi, FLX. Until now i can't find my answer. – Ryan Jones Bayron Mar 25 '17 at 05:17
  • Hi, @FLX. Until now i can't find my answer. This is what I want to happen in my system. A server that can create multiple rooms and let the client join. wait the room to be filled then start the lobby to the server. There's no multiplayer will be happen, all the clients that's connected to that room will just playing at the same time but in different scenes then sent the data to the server. (lets say 10 players playing flappy bird then send the score data to the sever for each player then the server will check who's player is out/dead). What function need to use? – Ryan Jones Bayron Mar 25 '17 at 05:27
  • You won't find "THE" solution or function that will solve everything for you. This is programming. Split your problem in multiple questions and solve them one by one. You can use networklobbymanager to regroup players in a room, then it's up to you. You are not forced to "do multiplayer" (i.e. sync transforms) once you're in the game scene. – FLX Mar 25 '17 at 08:31
  • ok thanks for the feedback @FLX much appreciated! – Ryan Jones Bayron Mar 25 '17 at 09:15

1 Answers1

1

Network.Connect is from the older Unity API, and was replaced by NetworkClient.Connect. They are part of the High Level Networking API of Unity. Please have a look at this example for a step by step into multiplayer: Unity multiplayer example

For a lower level usage of the networking, you have NetworkTransport class.

Adrien Leravat
  • 2,731
  • 18
  • 32
  • I thought Network.Connect was from the obsolete networking system ? – FLX Mar 21 '17 at 11:01
  • Correct, I confused it with NetworkTransport... thank you ! – Adrien Leravat Mar 21 '17 at 12:23
  • I don't know where to start. Networkmanager NetworkLobbyManager NetworkServer/NetworkClient NetworkTransport MasterServer? is this all different? thnx – Ryan Jones Bayron Mar 25 '17 at 05:33
  • Hello Ryan, yes it is all different, like FLX indicated, please ask a new question specifically. As a reminder your question was "Unity3D what is the difference between NetworkClient.Connect vs. Network.Connect?" – Adrien Leravat Mar 25 '17 at 10:04