技能读取
This commit is contained in:
parent
4e4e313bb2
commit
a3b8d260f4
22
Role/Role.cs
22
Role/Role.cs
@ -39,6 +39,8 @@ public class Role : Fun
|
|||||||
[Header("名称")] public string Name;
|
[Header("名称")] public string Name;
|
||||||
[Header("阵营")] public Camp camp ;
|
[Header("阵营")] public Camp camp ;
|
||||||
[Header("血量")] public float hp = 100f;//血量
|
[Header("血量")] public float hp = 100f;//血量
|
||||||
|
[Header("技能")] public List<Skill> Myskill;//技能
|
||||||
|
|
||||||
private float maxHp;
|
private float maxHp;
|
||||||
[Header(("死亡动画编号"))] public int dieIndex=-1;
|
[Header(("死亡动画编号"))] public int dieIndex=-1;
|
||||||
|
|
||||||
@ -480,5 +482,23 @@ public class Role : Fun
|
|||||||
|
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*void ReadTable()
|
||||||
|
{
|
||||||
|
foreach (Monster character in MengyaoInfo.Instance.m_SkillData)
|
||||||
|
{
|
||||||
|
if (id == character.temp_id)
|
||||||
|
{
|
||||||
|
Myskill = character.skills[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user