thylaxene wrote:Can we trouble you for an example of best practise, code flow?
For example here:
Doesn't seem to show proper clean up on app exit. So I followed that as an example to connect to and register events for the RFID Reader.
That code doesn't have any exit handling stuff at all. I have been fiddling around with Unity a bit today and I personally handled it like this:
Code: Select all
jump.StateChange -= onStateChange;
joystickX.VoltageRatioChange -= joystickChange;
joystickY.VoltageRatioChange -= joystickChange;
On the assumption that jump, joystickX, and joystickY are my Phidget devices (using a thumbstick phidget to control the ball instead of arrow keys on keyboard).