示例#1
0
		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);
				}
			}
		}
示例#2
0
 private void UpdatePickMsg()
 {
     if (_channel != null)
     {
         INetPackage package = (INetPackage)_channel.PickMsg();
         if (package != null)
         {
             if (package.IsMonoPackage)
             {
                 MonoPackageCallback.Invoke(package);
             }
             else
             {
                 HotfixPackageCallback.Invoke(package);
             }
         }
     }
 }