public override void InitUI() { base.InitUI(); FightHeroList heroList = MonoInstancePool.getInstance<HeroManager>().fightHeroList; List<HeroData> heros = heroList.getHeros(); for (int i = 0; i < heros.Count; i++) { if (i == 0) { } else { //记录历史数据 英雄 historyDatas.Add(new BattleStartHeroData(heros[i])); } } //记录历史数据 玩家 UserData d = MonoInstancePool.getInstance<UserData>(); hisPlayerData = new BattleStartPlayerData(d.exp, d.level); }
//设置统领经验条 public void SetPlayerExp() { hisPlayerData = UIBattleManager.instance.pnlPVE.hisPlayerData; playerSlot.SetOther("EXP+[03ff06]" + FM.playerExp + "[-]", hisPlayerData.GetPercentByEXP()); playerSlot.SetLevel("Lv." + hisPlayerData.level); updateEvent += UpdatePlayerExp; }