0312 图鉴中第一个可以升级或者升星的武将,引导用
| | |
| | | { |
| | | var heroID = HeroUIManager.Instance.heroCollectDict[quality][index]; |
| | | var heroConfig = HeroConfig.Get(heroID); |
| | | |
| | | this.gameObject.name = $"herocard_{heroID}"; |
| | | |
| | | HB122_tagSCHeroInfo.tagSCHero colData; |
| | | HeroUIManager.Instance.TryGetHeroBookInfo(heroID, out colData); |
| | | heroCardBG.SetSprite("herocardbg" + heroConfig.Quality); |
| | |
| | | if (HeroUIManager.Instance.IsBookShowRedPoint(ids[j])) |
| | | { |
| | | jumpIndex = index; |
| | | HeroUIManager.Instance.firstHeroIDBookUpdate = ids[j]; |
| | | } |
| | | } |
| | | } |
| | |
| | | public List<TeamHero> custonTeamHeroes = new List<TeamHero>(); |
| | | |
| | | public Dictionary<int, int> heroStarGuideDic = new Dictionary<int, int>(); |
| | | |
| | | public int firstHeroIDBookUpdate = 0; //图鉴中第一个可以升级或者升星的武将,引导用 |
| | | |
| | | |
| | | public override void Init() |
| | | { |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitialize; |
| | |
| | | waitResponse = default; |
| | | heroCollectInfoDic.Clear(); |
| | | newHeroIDList.Clear(); |
| | | firstHeroIDBookUpdate = 0; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | //某个武将图鉴中是否显示红点 |
| | | public bool IsBookShowRedPoint(int heroID) |
| | | { |
| | |
| | | }
|
| | | return UIManager.Instance.GetUIRoot().transform.Find($"{newPath}/{findName}{heroID}");
|
| | | }
|
| | | else if (code == "herobook")
|
| | | {
|
| | | return UIManager.Instance.GetUIRoot().transform.Find($"{newPath}/{findName}{HeroUIManager.Instance.firstHeroIDBookUpdate}");
|
| | | }
|
| | | Debug.LogError("引导未知的模糊查找指令:" + code);
|
| | | return null;
|
| | | }
|