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