引入属性、伤害管线
This commit is contained in:
@@ -57,7 +57,7 @@ namespace SepCore.Entity
|
||||
CachedTransform.DORotateQuaternion(endRotation, _attackDuration).SetEase(Ease.OutSine));
|
||||
_attackSequence.InsertCallback(_attackDuration * 0.5f, () =>
|
||||
{
|
||||
_attackEffect.Play(this, _attackCenter, _target, WeaponData.AttackRange);
|
||||
_attackEffect.Play(this, _attackCenter, _target, CurrentAttackRange);
|
||||
ApplySectorDamage();
|
||||
});
|
||||
_attackSequence.Append(CachedTransform.DORotateQuaternion(_cachedAttackRotation, _returnDuration)
|
||||
@@ -71,7 +71,7 @@ namespace SepCore.Entity
|
||||
|
||||
private void ApplySectorDamage()
|
||||
{
|
||||
float attackRadius = WeaponData.AttackRange;
|
||||
float attackRadius = CurrentAttackRange;
|
||||
if (attackRadius <= 0f) return;
|
||||
|
||||
Vector3 forward = CachedTransform.forward;
|
||||
|
||||
Reference in New Issue
Block a user