Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Network connection Events

$
0
0
Hello,

I am trying to check some events like when a client connects to a game or disconnects and so on. for now I have been testing with this script, but it doesnt seem to fire the event when a client connects.


Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4.  
  5. public class TestNetworkManager : NetworkManager
  6. {
  7.  
  8.  
  9.     public override void OnClientConnect(NetworkConnection conn)
  10.     {
  11.         Debug.Log("New client connected");
  12.     }
  13. }
Anyone has...

Network connection Events

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>