Example #1
0
 private static void OnConnect(bool succ)
 {
     if (succ == true)
     {
         if (Communicate.IsConnectedGS() == true)
         {
             IGGDebug.Log("连接游戏服务器");
             LoginDC.SendGSMsgCL2GS();
         }
         else
         {
             IGGDebug.Log("连接登录服务器");
             LoginDC.SendLoginMsgCL2LS();
         }
     }
     else
     {
         IGGDebug.Log("连接服务器失败");
         if (g_failfp != null)
         {
             g_failfp();
             g_failfp = null;
         }
     }
 }