Exemplo n.º 1
0
 /// <summary>Starts offline mode and switches to offline mode buttons</summary>
 private void OnOfflineButtonClick()
 {
     if (!NetworkingService.IsConnected)
     {
         ChangeGroupFocus("OfflineButtons");
         NetworkingService.SetOffline(true);
     }
     else
     {
         NetworkingService.Disconnect(() =>
         {
             ChangeGroupFocus("OfflineButtons");
             NetworkingService.SetOffline(true);
         });
     }
 }