Browse Source

修复打不塔问题

LAPTOP-OM1V99U2\永远de小亡灵 8 tháng trước cách đây
mục cha
commit
93611bea26
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ActionTowerDefense/Assets/Scripts/AttackTrigger.cs

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

@@ -73,7 +73,7 @@ public class AttackTrigger : MonoBehaviour
                     if (onlyFlyCanWeak && !trigedObjs[i].owner.canFly)
                     {
                         MoveCharacter moveCharacter = trigedObjs[i].owner.GetComponent<MoveCharacter>();
-                        if (!moveCharacter)
+                        if (moveCharacter)
                         {
                             moveCharacter.newTotalWeakTime = 0;
                         }