mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
TE6 打飞机Demo
TE6 打飞机Demo
This commit is contained in:
@@ -5,6 +5,14 @@ namespace YooAsset
|
||||
{
|
||||
internal class YooAssetsDriver : MonoBehaviour
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||
private static void OnRuntimeInitialize()
|
||||
{
|
||||
LastestUpdateFrame = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
private static int LastestUpdateFrame = 0;
|
||||
|
||||
void Update()
|
||||
@@ -13,6 +21,13 @@ namespace YooAsset
|
||||
YooAssets.Update();
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
void OnApplicationQuit()
|
||||
{
|
||||
YooAssets.OnApplicationQuit();
|
||||
}
|
||||
#endif
|
||||
|
||||
[Conditional("DEBUG")]
|
||||
private void DebugCheckDuplicateDriver()
|
||||
{
|
||||
|
Reference in New Issue
Block a user