public NetworkStatusReplicationComponent()
 {
     if (!GameNetwork.IsClientOrReplay)
     {
         return;
     }
     NetworkStatusReplicationComponent.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Add);
 }
 public override void OnUdpNetworkHandlerClose()
 {
     base.OnUdpNetworkHandlerClose();
     if (!GameNetwork.IsClientOrReplay)
     {
         return;
     }
     NetworkStatusReplicationComponent.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Remove);
 }