Flafla2 / Unity-Wiimote

An easy to use interface between Unity3D / C# and a Wii Remote controller.
MIT License
329 stars 73 forks source link

NullReferenceException in WiimoteManager - Cleanup #7

Closed andreierdoss closed 9 years ago

andreierdoss commented 9 years ago
NullReferenceException: Object reference not set to an instance of an object
WiimoteApi.WiimoteManager.Cleanup (WiimoteApi.Wiimote remote) (at Assets/Wiimote/Scripts/WiimoteManager.cs:120)
WiimoteDemo.OnGUI () (at Assets/Scripts/WiimoteDemo.cs:104)

This error pops up after clicking Cleanup a few times.

Flafla2 commented 9 years ago

Thanks for the contribution, fixed in 2c83ecb045f676aaecaea33ec9d5b5f1b0faef19