|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// Wait for any final uploads before exiting quitting
|
|
|
|
if (m_WaitingForFinalUploads) |
|
|
|
if (m_WaitingForFinalUploads && quitOnComplete) |
|
|
|
Manager.Instance.Shutdown(); |
|
|
|
|
|
|
|
if (quitOnComplete) |
|
|
|
UnityEditor.EditorApplication.ExitPlaymode(); |
|
|
|
UnityEditor.EditorApplication.ExitPlaymode(); |
|
|
|
Application.Quit(); |
|
|
|
Application.Quit(); |
|
|
|
#endif
|
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
{ |
|
|
|
foreach (var randomizer in activeRandomizers) |
|
|
|
randomizer.ScenarioComplete(); |
|
|
|
Manager.Instance.Shutdown(); |
|
|
|
DatasetCapture.ResetSimulation(); |
|
|
|
m_WaitingForFinalUploads = true; |
|
|
|
return; |
|
|
|