void OnDestroy() { // Debug.LogError("OnDestroy 1 "); DestroyBluetooth(); bluetoothSDKUtils = null; bluetoothSdk = null; }
void Awake() { if (null == bluetoothSdk) { bluetoothSdk = this; GameObject.DontDestroyOnLoad(bluetoothSdk.gameObject); } }