|
|
@@ -188,6 +188,7 @@ public class AttackController : MonoBehaviour
|
|
|
[Header("攻击特效")]
|
|
|
public GameObject attackEffect;
|
|
|
[Header("攻击参数")]
|
|
|
+ public int attackValue;
|
|
|
public AttackInfo attackInfo;
|
|
|
public AttackTrigger attackTrigger;
|
|
|
[Header("攻击距离")]
|
|
|
@@ -234,6 +235,8 @@ public class AttackController : MonoBehaviour
|
|
|
|
|
|
[Header("攻击参数")]
|
|
|
[DisplayOnly]
|
|
|
+ public int attackValue;
|
|
|
+ [DisplayOnly]
|
|
|
public int curDamage;
|
|
|
[HideInInspector]
|
|
|
public bool canHitFly;
|
|
|
@@ -299,6 +302,7 @@ public class AttackController : MonoBehaviour
|
|
|
attackMethod[i].maxAttackDis);
|
|
|
}
|
|
|
}
|
|
|
+ attackValue = attackMethod[0].attackValue;
|
|
|
}
|
|
|
|
|
|
private void OnEnable()
|
|
|
@@ -315,6 +319,7 @@ public class AttackController : MonoBehaviour
|
|
|
curAttackMethod = attackMethod[id];
|
|
|
attackType = curAttackMethod.attackType;
|
|
|
canHitFly = curAttackMethod.canHitFly;
|
|
|
+ attackValue = curAttackMethod.attackValue;
|
|
|
armorPiercing = curAttackMethod.armorPiercing;
|
|
|
attackInfo = curAttackMethod.attackInfo;
|
|
|
curDamage = attackInfo.damage;
|