提交 c891d960 编写于 作者: 魔术师Dix's avatar 魔术师Dix

+增加一个退出Unity时清空队列的功能;

上级 e26ebc86
......@@ -25,7 +25,10 @@ namespace Cocklebur
get
{
if (mInstance == null)
{
mInstance = AssetDatabase.LoadAssetAtPath<PackageInstallQueue>(assetPath);
Application.quitting += OnAppQuit;
}
return mInstance;
}
}
......@@ -59,5 +62,10 @@ namespace Cocklebur
return task;
}
/// <summary>
/// 退出Unity时清空;
/// </summary>
private static void OnAppQuit() { mInstance?.Clear(); }
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册