public void Dispose()
 {
     if (m_PingClient != null)
     {
         m_PingClient.Dispose();
         m_PingClient = null;
         m_Stats?.StopMeasuring();
         m_Stats = null;
     }
 }
        // Properly dispose of Ping Client
        void ShutdownPingClient()
        {
            if (m_PingClient != null)
            {
                Debug.Log("Shutting down existing MultiplayPingClient");
                m_PingClient.Dispose();
                m_Stats?.StopMeasuring();
            }

            m_PingClient = null;
        }