Is there a function that fires before the end of the current script?
It is not an Application.Quit () function.
etc) awake, start
Is there a function that fires before the end of the current script?
It is not an Application.Quit () function.
etc) awake, start
void OnApplicationQuit()
{
Debug.Log(“Application ending after " + Time.time + " seconds”);
}
or
void OnDestroy() {
print("Script was destroyed");
}