Instance
Namespace: SynicSugar.P2P
Class: ConnectHub
public static ConnectHub Instance => instance.Value;
private static Lazy<ConnectHub> instance = new Lazy<ConnectHub>();
public static ConnectHub Instance => instance.Value;
Description
The singleton instance for ConnectHub.
This script and instance is generated for each Assembly.
using SynicSugar.P2P;
public class p2pSample {
void ConnectHubSample(){
ConnectHub.Instance.StartPacketReceiver();
}
}