mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 09:40:11 +00:00
15 lines
260 B
C#
15 lines
260 B
C#
using System;
|
|
using UnityEngine;
|
|
using YooAsset;
|
|
|
|
public class ApplicationQuit : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
DontDestroyOnLoad(this.gameObject);
|
|
}
|
|
private void OnApplicationQuit()
|
|
{
|
|
YooAssets.Destroy();
|
|
}
|
|
} |