Kaynağa Gözat

群体攻击变成单体

wgl 6 ay önce
ebeveyn
işleme
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);