How do you know if your game has crashed last time It lunched?
Maybe something to do with application is about to quit? How can you handle that in unity?
You ask it if it wants dinner yet?
If you have a minor crash that you can catch, such as a null reference, that trashes the game but not the player, you can log that.
If you have a major crash that crashes the player to desktop (or breaks the web browser), you cannot, AFAIK, do much about that in Unity, but you can set up a watchdog timer that saves a value every few frames. You can also, on a regular application exit, write a value that indicates that the game exited correctly. The next time you start the game, check for that value, if it exists, the game exited cleanly, if it doesn’t, the game probably crashed or is a fresh install with no previous save data.
Hahahaha funny?
Launched is what I meant, but you know that!
How do you check for a regular app exit in unity?
You read the documentation.
This page has all the information you need: http://tinyurl.com/6jlsdzm