Exemple #1
0
        public void PostReceiveStart(ReceivePacket entity)
        {
            ReceiveListener listener = mReceiveListener;

            if (listener != null && entity != null)
            {
                PostQueue(() =>
                {
                    listener.OnReceiveStart(entity.GetPacketType(), entity.GetId());
                });
            }
        }
Exemple #2
0
 public void Run()
 {
     if (listener != null)
     {
         if (progress > 0)
         {
             listener.OnReceiveProgress(entity, progress);
         }
         else if (isEnd)
         {
             listener.OnReceiveEnd(entity);
         }
         else
         {
             listener.OnReceiveStart(entity.GetPacketType(), entity.GetId());
         }
     }
     entity   = null;
     listener = null;
 }
Exemple #3
0
 public void Run()
 {
     listener.OnReceiveStart(entity.GetPacketType(), entity.GetId());
     entity   = null;
     listener = null;
 }