From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl

---
 Main/System/HeroUI/HeroCollectionWin.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Main/System/HeroUI/HeroCollectionWin.cs b/Main/System/HeroUI/HeroCollectionWin.cs
index 50bd021..be115e0 100644
--- a/Main/System/HeroUI/HeroCollectionWin.cs
+++ b/Main/System/HeroUI/HeroCollectionWin.cs
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using Cysharp.Threading.Tasks;
 using UnityEngine;
 using UnityEngine.UI;
 
@@ -20,13 +21,13 @@
 
     SinglePack singlePack;
 
-    protected override void InitComponent()
+    protected override async void InitComponent()
     {
         attrBtn.AddListener(() =>
         {
             SmallTipWin.worldPos = CameraManager.uiCamera.ScreenToWorldPoint(Input.mousePosition);
             SmallTipWin.showText = Language.Get("herocard6");
-            UIManager.Instance.OpenWindow<SmallTipWin>();
+            UIManager.Instance.OpenWindowAsync<SmallTipWin>().Forget();
         });
 
         heroPackBtn.AddListener(() =>
@@ -34,7 +35,7 @@
             HeroUIManager.Instance.QueryUnLockHeroPack();
         });
 
-        fiterManager = HeroSelectBehaviour.Create(heroSelectBehaviour);
+        fiterManager = await HeroSelectBehaviour.Create(heroSelectBehaviour);
     }
 
     protected override void OnPreOpen()
@@ -66,7 +67,7 @@
 
     void Display()
     {
-        fiterManager.Display(0, SelectJobCountry);
+        fiterManager?.Display(0, SelectJobCountry);
 
         // CreateScroller();
         // RefreshTotalAttr();

--
Gitblit v1.8.0