예제 #1
0
        void OnLeaveHandler(int id, LEAVE_CHANNEL_ERR errorCode)
        {
            string msg = "client onleave id = " + id + " errorCode = " + errorCode;

            Debug.Log(msg);
            messageDisplay.AddTextToDisplay(msg, Message.MessageType.Info);
        }
예제 #2
0
 private static void OnLeaveCallback(int id, LEAVE_CHANNEL_ERR errorCode)
 {
     if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnLeave != null)
     {
         if (AgoraCallbackObject.GetInstance()._CallbackQueue != null)
         {
             AgoraCallbackObject.GetInstance()._CallbackQueue.EnQueue(() => {
                 if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnLeave != null)
                 {
                     channelEventHandlerDic[id].OnLeave(id, errorCode);
                 }
             });
         }
     }
 }
예제 #3
0
 void OnLeaveHandler2(int id, LEAVE_CHANNEL_ERR errorCode)
 {
     Debug.Log("client2  OnLeave id = " + id + "  error:" + errorCode);
 }