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