slambb 1226916b9e 部分资源 6 luni în urmă
..
Materials 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
Scenes 1226916b9e 部分资源 6 luni în urmă
Scripts 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
Arduino Unity Plugin.pdf 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
Arduino Unity Plugin.pdf.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
Materials.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
Scenes.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
Scripts.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
changelogs.txt 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
changelogs.txt.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
help.txt 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
help.txt.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
readme.txt 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
readme.txt.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
wiring.png 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă
wiring.png.meta 1a770c6bed 1.使用unity 2021.3.42f1 版本 1 an în urmă

readme.txt

If you are upgrading from version 5.3.1 or older to version 5.4.0 please note the following changes:


All BluetoothHelper class events now have BluetoothHelper as their 1st parameter.

this is for better support of connection to multiple instance,
for example, previously you would do:

bluetoothHelper.OnConnected += ()
{
//do something...
}


now you do :
bluetoothHelper.OnConnected += (helper)
{
//do something...
//inside this function, you now have a reference to the caller of that function!
}

the above is applicable for all events.
another exampler:

bluetoothHelper.OnCharacteristicChanged += OnCharacteristicChanged;

void OnCharacteristicChanged (BluetoothHelper helper, byte[] value, BluetoothHelperCharacteristic characteristic)
{
//do somthing
}

previously it was :
void OnCharacteristicChanged (byte[] value, BluetoothHelperCharacteristic characteristic)
{
//do somthing
}