Explorar el Código

群体攻击变成单体

wgl hace 6 meses
padre
commit
e7de13fc4e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ActionTowerDefense/Assets/Scripts/Characters/AttackTrigger.cs

+ 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);