From eb1efcaa9be0e2340fc49b38dab8df18e36526c9 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 13 六月 2025 17:57:43 +0800
Subject: [PATCH] 117 【武将】武将系统 卡牌信息&Manager初始化前移

---
 Main/Component/UI/Common/AdaptiveLayout.cs |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/Main/Component/UI/Common/AdaptiveLayout.cs b/Main/Component/UI/Common/AdaptiveLayout.cs
index 3053803..73ad612 100644
--- a/Main/Component/UI/Common/AdaptiveLayout.cs
+++ b/Main/Component/UI/Common/AdaptiveLayout.cs
@@ -3,8 +3,8 @@
 using UnityEngine;
 using UnityEngine.UI;
 using System;
-namespace vnxbqy.UI
-{
+using Cysharp.Threading.Tasks;
+
     [ExecuteAlways]
     public class AdaptiveLayout : MonoBehaviour
     {
@@ -49,7 +49,7 @@
             {
                 m_CanvasGroup.alpha = 0;
                 m_CanvasGroup.interactable = true;
-                StartCoroutine(Co_DelayShow());
+                Co_DelayShow();
             }
         }
 
@@ -196,9 +196,9 @@
             LateUpdate();
         }
 
-        IEnumerator Co_DelayShow()
+        async UniTask Co_DelayShow()
         {
-            yield return WaitingForSecondConst.WaitMS100;
+            await UniTask.Delay(100);
             if (m_CanvasGroup != null)
             {
                 m_CanvasGroup.alpha = 1;
@@ -237,5 +237,4 @@
             }
         }
 
-    }
-}
+    }
\ No newline at end of file

--
Gitblit v1.8.0