Flafla2 / Unity-Wiimote

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

Unity crashes in the editor after running twice. #25

Closed inkhalistan closed 8 years ago

inkhalistan commented 8 years ago

If I run the game and then stop it, and then press play again then Unity crashes, every time. In my experience with Unity, this happened to me when I made native plugins in C++ with infinite loops in threads. Idk if this is helpful or anything. I just wanted to note it

Flafla2 commented 8 years ago

Make sure to hit Cleanup() in the demo scene before quitting. In a real game you should do this in OnDisable(), but for a technical demo I didn't worry about it.

Flafla2 commented 8 years ago

Fixed with #27