예제 #1
0
 private static void OnLogoutCallback(int id, LOGOUT_ERR_CODE errorCode)
 {
     if (clientEventHandlerHandlerDic.ContainsKey(id) && clientEventHandlerHandlerDic[id].OnLogout != null)
     {
         if (AgoraCallbackObject.GetInstance()._CallbackQueue != null)
         {
             AgoraCallbackObject.GetInstance()._CallbackQueue.EnQueue(() => {
                 if (clientEventHandlerHandlerDic.ContainsKey(id) && clientEventHandlerHandlerDic[id].OnLogout != null)
                 {
                     clientEventHandlerHandlerDic[id].OnLogout(id, errorCode);
                 }
             });
         }
     }
 }
예제 #2
0
 void OnLogoutHandler2(int id, LOGOUT_ERR_CODE errorCode)
 {
     Debug.Log("client2 OnLogout id = " + id + "  error: " + errorCode);
 }