mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
15 lines
233 B
C#
15 lines
233 B
C#
using System;
|
|
using UnityEngine;
|
|
using YooAsset;
|
|
|
|
public class BhvApplicationQuit : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
DontDestroyOnLoad(this.gameObject);
|
|
}
|
|
private void OnApplicationQuit()
|
|
{
|
|
YooAssets.Destroy();
|
|
}
|
|
} |