Hi,
I want to call some methods after I hit stop in the editor.
I am using this code and “Waited” does not come in editor while “Check” does.
Looks like WaitForSeconds can´t be used here, right?
Any workaround?
void OnApplicationQuit(){
Application.CancelQuit();
StartCoroutine("Delay");
}
IEnumerator Delay(){
print("CHECK");
yield return new WaitForSeconds(1.0f);
print("WAITED");
Application.Quit();
}