From ae2c0eddc422acc6360ade1f051cf4df8d32d5ea Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Wed, 25 Dec 2024 20:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BB=E5=87=BB=E8=8C=83=E5=9B=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Role.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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("攻击力赋值++++++++++++++++++++++++++++++"); } }