/// <summary> /// cleanup the pomelo client /// NOTE it's not the best practice since it would not invoke on ios /// </summary> /// void OnApplicationQuit() { if (client != null) { DLog("client ready to destroy"); client.Destroy(); client = null; PomeloClient.LibCleanup(); DLog("destroy client successful"); } else { DLog("no client to destroy!"); } }