private void UpdatePickMsg() { if (_channel != null) { NetReceivePackage package = (NetReceivePackage)_channel.PickMsg(); if (package != null) { if (package.ProtoObj != null) MonoProtoCallback.Invoke(package); if (package.ProtoBodyData != null) HotfixProtoCallback.Invoke(package); } } }
private void UpdatePickMsg() { if (_channel != null) { INetPackage package = (INetPackage)_channel.PickMsg(); if (package != null) { if (package.IsMonoPackage) { MonoPackageCallback.Invoke(package); } else { HotfixPackageCallback.Invoke(package); } } } }