void OnDisable() { m_sender.Close(); m_thread.Stop(); m_udp.StopConnection(); }
void OnApplicationQuit() { udpReceiver.Close(); udpSender.Close(); }
public void Teardown() { udpReceiver.Close(); udpSender.Close(); }
public IEnumerator Teardown() { udpReceiver.Close(); udpSender.Close(); yield return(new WaitForSeconds(1)); }