Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Awake ()
- {
- BluetoothAdapter.enableBluetooth();//Force Enabling Bluetooth
- device = new BluetoothDevice();
- device.Name = "WINKY";
- device.setEndByte (10);
- device.ReadingCoroutine = ManageConnection;
- /* Keep the BT connection from one scene to another */
- DontDestroyOnLoad (this.gameObject);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement