Update YooAssetDriver

在游戏对象销毁的时候释放YooAssets
This commit is contained in:
hevinci
2022-09-21 11:36:28 +08:00
parent 95924868f7
commit a89127df1d
2 changed files with 22 additions and 14 deletions
@@ -9,6 +9,11 @@ namespace YooAsset
YooAssets.InternalUpdate();
}
void OnDestroy()
{
YooAssets.InternalDestroy();
}
void OnApplicationQuit()
{
YooAssets.InternalDestroy();