예제 #1
0
 public void Update(float elapseSeconds, float realElapseSeconds)
 {
     m_Counter = 0;
     if (isConnected)
     {
         if (m_Handler != null)
         {
             m_Handler.OnConnected(this, isConnectedSuccess);
         }
         isConnected        = false;
         isConnectedSuccess = false;
     }
     if (isClose)
     {
         Close();
         isClose = false;
     }
     while (m_ReceivedQueue.Count > 0 && m_Counter < HANDLE_PER_FRAME)
     {
         if (m_Handler != null)
         {
             m_Handler.OnChannelReceived(this, m_ReceivedQueue.Dequeue());
         }
         ++m_Counter;
     }
 }