Пример #1
0
 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;
 }