예제 #1
0
파일: Hero.cs 프로젝트: QAQ7/DarkestDungeon
 public override void valueInit()
 {
     this.skillName = SkillList.toArray(data.skillList);
     for (int i = 0; i < skillName.Length; i++)
     {
         Type type = Type.GetType(skillName[i]);
         this.gameObject.AddComponent(type);
     }
     this.hp    = data.hp;
     this.mp    = data.mp;
     this.speed = data.speed;
 }