diff --git a/Role/Role.cs b/Role/Role.cs index 5dd3d88..4c8c3fb 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -70,8 +70,8 @@ public class Role : Fun public string SkillId;//技能 public string AttackType;//攻击类型 public string AttackActionType;//攻击作用类型 - - public float AttackRange { get; set; }//攻击范围 + + public float AttackRange;//攻击范围 public float AttackCD;//攻击CD public float CritRate;//暴击率 public float CriticalHitRateBonus;//暴击加成 @@ -494,6 +494,7 @@ public class Role : Fun AttackType=character.AttackType;//攻击类型 AttackActionType=character.AttackActionType;//攻击作用类型 CriticalHitRateBonus = float.Parse(character.CriticalHitRateBonus); + AttackRange = float.Parse(character.AttackRange); //Debug.Log("攻击力赋值++++++++++++++++++++++++++++++"); } }