UnregisterHandler() public method

This removes the handler registered for a message Id.

public UnregisterHandler ( short msgType ) : void
msgType short The message ID to unregister.
return void
コード例 #1
0
	override public void OnClientDisconnect (NetworkConnection conn)
	{
		base.OnClientDisconnect (conn);
		print ("CLIENT: disconnected from " + conn.address);
		conn.UnregisterHandler (MsgCode);
		netDiscovery.shouldConnect = true;
	}