public void PostReceiveStart(ReceivePacket entity) { ReceiveListener listener = mReceiveListener; if (listener != null && entity != null) { PostQueue(() => { listener.OnReceiveStart(entity.GetPacketType(), entity.GetId()); }); } }
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; }
public void Run() { listener.OnReceiveStart(entity.GetPacketType(), entity.GetId()); entity = null; listener = null; }