OnStatusChanged() public method

public OnStatusChanged ( StatusCode statusCode ) : void
statusCode StatusCode
return void
Esempio n. 1
0
 public static void Disconnect()
 {
     if (offlineMode)
     {
         offlineMode          = false;
         offlineModeRoom      = null;
         networkingPeer.State = PeerStates.Disconnecting;
         networkingPeer.OnStatusChanged(StatusCode.Disconnect);
     }
     else if (networkingPeer != null)
     {
         networkingPeer.Disconnect();
     }
 }
Esempio n. 2
0
 public static void Disconnect()
 {
     if (offlineMode)
     {
         offlineMode          = false;
         offlineModeRoom      = null;
         networkingPeer.State = PeerState.Disconnecting;
         networkingPeer.OnStatusChanged(StatusCode.Disconnect);
         return;
     }
     if (networkingPeer == null)
     {
         return;
     }
     networkingPeer.Disconnect();
 }