YooAssetDriver.cs 281 B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. namespace YooAsset
  3. {
  4. internal class YooAssetDriver : MonoBehaviour
  5. {
  6. void Update()
  7. {
  8. YooAssets.InternalUpdate();
  9. }
  10. void OnDestroy()
  11. {
  12. YooAssets.InternalDestroy();
  13. }
  14. void OnApplicationQuit()
  15. {
  16. YooAssets.InternalDestroy();
  17. }
  18. }
  19. }