Ejemplo n.º 1
0
 private void OnApplicationQuit()
 {
     stopConnectAll = true;
     try
     {
         NetProxcy.CloseSocket();
     }
     catch (Exception exception)
     {
         com.tencent.pandora.Logger.d(exception.Message);
     }
     com.tencent.pandora.Logger.d("Pandora OnApplicationQuit");
     instance   = null;
     pandora_gm = null;
 }
Ejemplo n.º 2
0
 public static void LogOutAccount()
 {
     try
     {
         Configer.strCtrFlagTotalSwitch = string.Empty;
         stopConnectAll = false;
         NetProxcy.CloseSocket();
         if (Pdr.isInitUlua)
         {
             object[] args = new object[] { string.Empty };
             Util.CallMethod("commonlib", "ChangeRole", args);
         }
     }
     catch (Exception exception)
     {
         com.tencent.pandora.Logger.LogNetError(Configer.iCodeCSException, exception.Message);
     }
 }