diff --git a/Assets/YooAsset/Runtime/YooAssetDriver.cs b/Assets/YooAsset/Runtime/YooAssetDriver.cs index 492458d..0aac75d 100644 --- a/Assets/YooAsset/Runtime/YooAssetDriver.cs +++ b/Assets/YooAsset/Runtime/YooAssetDriver.cs @@ -2,11 +2,16 @@ namespace YooAsset { - internal class YooAssetDriver : MonoBehaviour - { - void Update() - { - YooAssets.InternalUpdate(); - } - } + internal class YooAssetDriver : MonoBehaviour + { + void Update() + { + YooAssets.InternalUpdate(); + } + + void OnApplicationQuit() + { + DownloadSystem.DestroyAll(); + } + } } \ No newline at end of file