private void OnApplicationQuit() { #if UNITY_IOS pingThread.Interrupt(); #else pingThread.Abort(); #endif } #endif