Exemple #1
0
        /// <summary>
        /// 通过职业和种族, 获取英雄模型地址
        /// </summary>
        public static string GetHeroModelAddress(ActorRace actorRace, ActorClass actorClass)
        {
            string rn = SwordUtil.GetRaceName(actorRace);
            string cn = SwordUtil.GetClassName(actorClass);

            return(GetHeroModelAddress(rn, cn));
        }
Exemple #2
0
        public void SetData(ActorVO vo)
        {
            if (vo == null)
            {
                return;
            }

            NameTxt.text  = vo.Name;
            LevelTxt.text = vo.Level.ToString();
            RaceTxt.text  = SwordUtil.GetRaceName(vo.RaceEnum);
            ClassTxt.text = SwordUtil.GetClassName(vo.ClassEnum);
        }