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); } }); } } }
void OnLogoutHandler2(int id, LOGOUT_ERR_CODE errorCode) { Debug.Log("client2 OnLogout id = " + id + " error: " + errorCode); }