From 97de31e9a015cf139f5293a22e1575a43dfb6733 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 24 四月 2026 14:16:02 +0800
Subject: [PATCH] WEBGL ANDROID适配
---
Main/Utility/UniTaskExtension.cs | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Main/Utility/UniTaskExtension.cs b/Main/Utility/UniTaskExtension.cs
index 2ff6255..cab6e65 100644
--- a/Main/Utility/UniTaskExtension.cs
+++ b/Main/Utility/UniTaskExtension.cs
@@ -6,12 +6,12 @@
{
public static void DelayFrame(this GameObject go, Action action)
{
- DelayFrameInternal(1, action);
+ DelayFrameInternal(1, action).Forget();
}
public static void DelayFrame(this Component cmp, Action action)
{
- DelayFrameInternal(1, action);
+ DelayFrameInternal(1, action).Forget();
}
private async static UniTask DelayFrameInternal(int frame, Action action)
@@ -22,27 +22,27 @@
public static void DelayFrames(this Component cmp, int frames, Action action)
{
- DelayFrameInternal(frames, action);
+ DelayFrameInternal(frames, action).Forget();
}
public static void DelayFrames(this GameObject go, int frames, Action action)
{
- DelayFrameInternal(frames, action);
+ DelayFrameInternal(frames, action).Forget();
}
public static void DelayFrame(Action action)
{
- DelayFrameInternal(1, action);
+ DelayFrameInternal(1, action).Forget();
}
public static void DelayTime(this GameObject go, float time, Action action)
{
- DelayTimeInternal(time, action);
+ DelayTimeInternal(time, action).Forget();
}
public static void DelayTime(this Component cmp, float time, Action action)
{
- DelayTimeInternal(time, action);
+ DelayTimeInternal(time, action).Forget();
}
private async static UniTask DelayTimeInternal(float time, Action action)
--
Gitblit v1.8.0