Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. void Awake ()
  2.     {
  3.        
  4.         BluetoothAdapter.enableBluetooth();//Force Enabling Bluetooth
  5.         device = new BluetoothDevice();
  6.         device.Name = "WINKY";
  7.  
  8.         device.setEndByte (10);
  9.         device.ReadingCoroutine = ManageConnection;
  10.  
  11.         /* Keep the BT connection from one scene to another */
  12.         DontDestroyOnLoad (this.gameObject);
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement