//On my server, I used InitializeServer to Start the Server
Network.InitializeServer (10, 1234, useNat);
//On my client side to connect to the Server.
Network.Connect("127.0.0.1", 1234);
Now, I want to send data to each other. For example, Server will send data to all clients, the count of clients connected. The client will accept that message and put the result in the UI Text.
I already read about NetworkMessage but It’s only work if I used NetworkServer,Listen / NetworkClient.RegisterHandler. and also about [SyncVar] and [ClientRPC] but still I can’t find my answer,
I’m hoping that somebody will help me about this.
I just started learning about Unity Networking.
Source Code with a proper explanation will help,
Unity Documentation made my head blow off.
Thanks in advance.