From b0a5d4688f1af73b5ad03ccc2df11c9aac1523a9 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期二, 29 七月 2025 16:56:23 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/System/HeroUI/HeroCardCell.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Main/System/HeroUI/HeroCardCell.cs b/Main/System/HeroUI/HeroCardCell.cs index 9c4ef27..7521a1c 100644 --- a/Main/System/HeroUI/HeroCardCell.cs +++ b/Main/System/HeroUI/HeroCardCell.cs @@ -21,7 +21,7 @@ public void Display(int index) { - var hero = HeroManager.Instance.GetHero(HeroManager.Instance.heroSortList[index]); + var hero = HeroManager.Instance.GetHero(HeroUIManager.Instance.heroSortList[index]); if (hero == null) { this.gameObject.SetActive(false); @@ -39,7 +39,7 @@ countryImg.SetSprite("herocountry" + heroConfig.Country); jobImg.SetSprite("herojob" + heroConfig.Class); heroModel.Create(heroConfig.SkinIDList[hero.SkinIndex], heroConfig.UIScale); - onStateImg.SetActive(hero.isInMainBattle); + onStateImg.SetActive(hero.IsInTeamByTeamType(TeamType.Story)); redpoint.redpointId = MainRedDot.HeroCardRedpoint * 1000 + hero.itemHero.gridIndex; var funcState = hero.funcState; -- Gitblit v1.8.0