public override void OnRemoteSystemLost(DiscoveredSystem remoteSystem)
 {
     if (this.LostEvent != null)
     {
         this.LostEvent(remoteSystem);
     }
 }
 public override void OnRemoteSystemDiscovered(DiscoveredSystem remoteSystem)
 {
     if (this.DiscoveredEvent != null)
     {
         this.DiscoveredEvent(remoteSystem);
     }
 }
Пример #3
0
 private void OnSystemDiscovered(DiscoveredSystem obj)
 {
     if (obj.GetRole() == SystemRole.SessionDiscoveryServerRole)
     {
         //Found a server. Stop pinging the network and connect
         isTryingToFindServer = false;
         ServerAddress        = obj.GetAddress();
         Debug.Log("System Discovered at: " + ServerAddress);
         //Connect();
         Debug.Log(string.Format("Connected to: {0}:{1}", ServerAddress, ServerPort));
     }
 }