}                                                                         //预制体名字

    public CharacterAttribute(CharShareAttribute charShareAttribute, int lv)
    {
        CharShareAttribute = charShareAttribute;
        Lv = lv;

        _CurrentHP = CharShareAttribute.MaxHP + CharShareAttribute.Strategy.GetExtraHP(Lv);
        DesDmg     = CharShareAttribute.Strategy.GetDescDmg(Lv);
    }
Пример #2
0
 public SoldierAttribute(CharShareAttribute charShareAttribute, int lv) : base(charShareAttribute, lv)
 {
 }
 public EnemyAttribute(CharShareAttribute charShareAttribute, int lv) : base(charShareAttribute, lv)
 {
 }