Esempio n. 1
0
 private void OnConnectEvent(object sender, ConnectEventArgs e)
 {
     if (e.isConnecting)
     {
         TLogger.INFO("Peer is created.");
     }
     else
     {
         TLogger.ERROR("Peer create failed.");
     }
 }
Esempio n. 2
0
    private void OnLoginEvent(object sender, LoginEventArgs e)
    {
        if (e.returnCode == (short)ResultCode.Success)
        {
            TLogger.INFO("Login Success. username: "******"Lobby", false, false);
            return;
        }
        string msg = string.Format("Login Failed, {0}", e.debugMessage);

        TLogger.ERROR(msg);
    }