|
|
|
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
} |
|
|
|
|
|
|
|
#if UNITY_EDITOR_OSX
|
|
|
|
#if UNITY_EDITOR_OSX || true
|
|
|
|
void OnDestroy() |
|
|
|
{ |
|
|
|
KillProcess(); |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static void Quit() |
|
|
|
{ |
|
|
|
KillProcess(); |
|
|
|
} |
|
|
|
|
|
|
|
[RuntimeInitializeOnLoadMethod] |
|
|
|
static void RunOnStart() |
|
|
|
{ |
|
|
|
Application.quitting += Quit; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Executes command in cmd or console depending on system
|
|
|
|
|
|
|
|
|
|
|
Directory.Delete(target_dir, false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |