Example #1
0
 public void Exit()
 {
     //make sure to shutdown the network. This is usually not needed but at version 5.2.1 4p unity doesn't call
     //destructors reliably
     if (mNetwork != null)
     {
         mNetwork.Shutdown();
         if (mNetwork is WebRtcNetwork)
         {
             ((WebRtcNetwork)mNetwork).Dispose();
         }
     }
     Application.LoadLevel("menuscene");
 }