Hello! :) My code (C#) starts a thread that pings a server every 7 seconds. However, when Unity stops playing... The thread lives on! As I am typing this, Unity is still pinging my server, even though it is not in play mode. Is there any callback I can set, etc, that will be called when Unity is closed so that I can close the thread? My code is NOT a mono-behaviour, and as such, the typical methods such as Update() or Start() are not available.
↧