private void OnClickNext() { if (_curHeroIndex < HeroAll.GetHeroList().Count - 1) { ShowHero(++_curHeroIndex); } }
private void ShowHeroInfo(int heroId) { HeroInfo heroInfo = HeroAll.GetHeroInfo(heroId); for (int i = 0; i < 10; ++i) { Values[i].text = heroInfo.MainProperty[i].ToString(); } }
public void ShowHero(int heroIndex) { DestroyHero(); _curHeroIndex = heroIndex; int heroId = HeroAll.GetHeroList()[_curHeroIndex]; _curHeroGo = ResourceLoader.LoadAssetAndInstantiate(string.Format("Character/Hero{0}_Stand", heroId), HeroModelRoot); _curHeroGo.transform.Rotate(PositionMgr.vecRotY); ShowHeroInfo(heroId); }
private void InitAddPanel() { List <int> lst = HeroAll.GetHeroList(); for (int i = 0; i < lst.Count; ++i) { InsertHeroItem(lst[i]); } AddCloseBtn.onClick.AddListener(CloseAddPanel); AddOkBtn.onClick.AddListener(AddOk); }
public HeroInfo GetHeroInfoMine(int heroId) { return(HeroAll.GetHeroInfo(heroId)); }