Game Restarts Randomly

Hello Everyone,

During the development of my game I found a bug that force restarts the game at random times. I ran the Profiler many times and I found that the moment my game restarts the GameOver.$() function (or whatever) calls and the following frame the the game restarts. I dont know that GameOver thing means although I have tried googling it but nothing.

Any help would be appreciated so thank you!!

I am having the same problem but I have no clue how to figure it out

I have a Unity project that restarts at times. The culprit in my case appears to be textures. Apparently we have to destroy textures (Texture2D in my case) after we no longer need them, otherwise they take up precious memory. See if that helps. Properly destroy textures that are no longer needed.