private void OnDestroy() { if (DisconnectOnDestroy) { Debug.Log("Destroy!!"); ClientProvider.CloseClient(); } }
void OnApplicationQuit() { Disconnect(); ClientProvider.CloseClient(); }