void OnStatsUpdate(ref MyEventStatsUpdate msg)
 {
     MyPlayerRemote sender = (MyPlayerRemote)msg.SenderConnection.Tag;
     if (sender != null)
     {
         sender.Statistics = new MyPlayerStatistics();
         sender.Statistics.Init(msg.StatsBuilder);
     }
 }
 public void UpdateStats()
 {
     MyEventStatsUpdate msg = new MyEventStatsUpdate();
     msg.StatsBuilder = PlayerStatistics.GetObjectBuilder();
     Peers.SendToAll(ref msg, NetDeliveryMethod.Unreliable);
 }