示例#1
0
 public static void Init()
 {
     RandomMyPeerID();
     Socket.Init();
     GetPrivateIPEndPoint();
     if (AdvancedSettings.isSTUN)
     {
         StunIPEndPoint  = Socket.GetSTUNResult();
         isGetStunResult = true;
     }
     ManagersInit();
     isInit = true;
     Debugger.Log("[UniP2PManager] Initialized");
 }