Exemple #1
0
 private void OnDestroy()
 {
     if (DisconnectOnDestroy)
     {
         Debug.Log("Destroy!!");
         ClientProvider.CloseClient();
     }
 }
 void OnApplicationQuit()
 {
     Disconnect();
     ClientProvider.CloseClient();
 }