From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)

---
 Main/System/HeroUI/HeroListWin.cs |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/Main/System/HeroUI/HeroListWin.cs b/Main/System/HeroUI/HeroListWin.cs
index e31e90e..d801b33 100644
--- a/Main/System/HeroUI/HeroListWin.cs
+++ b/Main/System/HeroUI/HeroListWin.cs
@@ -1,6 +1,7 @@
 using System;
 using System.Collections;
 using System.Collections.Generic;
+using Cysharp.Threading.Tasks;
 using UnityEngine;
 using UnityEngine.UI;
 
@@ -35,17 +36,16 @@
         changeHeroPosBtn.AddListener(() =>
         {
             HeroUIManager.Instance.selectTeamType = TeamManager.Instance.GetMainTeamID();
-            UIManager.Instance.OpenWindow<HeroPosWin>();
+            UIManager.Instance.OpenWindowAsync<HeroPosWin>().Forget();
         });
         attrOnTipBtn.AddListener(() =>
         {
             attrOnTip.SetActive(!attrOnTip.activeSelf);
         });
 
-        fiterManager = HeroSelectBehaviour.Create(heroSelectBehaviour);
         lineupRecommendBtn.AddListener(() =>
         {
-            UIManager.Instance.OpenWindow<LineupRecommendWin>();
+            UIManager.Instance.OpenWindowAsync<LineupRecommendWin>().Forget();
         });
     }
 
@@ -63,7 +63,26 @@
         FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
         // CreateScroller();
         Refresh();
-        fiterManager.Display(0, SelectJobCountry);
+        if (null != fiterManager)
+        {
+            fiterManager.Display(0, SelectJobCountry);
+        }
+        else
+        {
+            HeroSelectBehaviour.Create(heroSelectBehaviour).ContinueWith(fmgr =>
+            {
+                if (this == null)
+                {
+                    if (fmgr != null)
+                    {
+                        GameObject.DestroyImmediate(fmgr.gameObject);
+                    }
+                    return;
+                }
+                fiterManager = fmgr;
+                fiterManager.Display(0, SelectJobCountry);
+            }).Forget();   
+        }
 
     }
 

--
Gitblit v1.8.0