Parcourir la source

群体攻击变成单体

wgl il y a 6 mois
Parent
commit
e7de13fc4e

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Characters/AttackTrigger.cs

@@ -61,7 +61,7 @@ public class AttackTrigger : MonoBehaviour
                 {
                     return;
                 }
-                if(trigedObjs.Count == 0 && !trigedObjs.Exists(x => x== hitTrigger))
+                if(trigedObjs.Count == 0 || !trigedObjs.Exists(x => x== hitTrigger))
                 {
                     trigedObjs.Add(hitTrigger);
                     hitTrigger.BeHit(attackInfo, owner);