Files
YooAsset/Assets/YooAsset/Runtime/YooAssetDriver.cs

22 lines
257 B
C#
Raw Normal View History

2022-03-03 18:07:58 +08:00
using UnityEngine;
namespace YooAsset
{
2022-04-04 22:43:42 +08:00
internal class YooAssetDriver : MonoBehaviour
{
void Update()
{
2022-09-29 18:40:43 +08:00
YooAssets.Update();
2022-04-04 22:43:42 +08:00
}
void OnDestroy()
{
2022-09-29 18:40:43 +08:00
YooAssets.Destroy();
}
2022-04-04 22:43:42 +08:00
void OnApplicationQuit()
{
2022-09-29 18:40:43 +08:00
YooAssets.Destroy();
2022-04-04 22:43:42 +08:00
}
}
2022-03-03 18:07:58 +08:00
}