소스 검색

漏传again

wgl 6 달 전
부모
커밋
7c0cfb0e90
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      ActionTowerDefense/Assets/Scripts/Tower/EnemyTower.cs
  2. 1 1
      ActionTowerDefense/Assets/Scripts/Tower/Tower.cs

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Tower/EnemyTower.cs

@@ -133,6 +133,6 @@ public class EnemyTower : Character
 
     public override void BeHit(AttackInfo attackInfo, float dir)
     {
-        base.BeHit(attackInfo, dir);
+        base.BeHit(attackInfo.damage);
     }
 }

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

@@ -138,6 +138,6 @@ public class Tower : Character
 
     public override void BeHit(AttackInfo attackInfo, float dir)
     {
-        base.BeHit(attackInfo, dir);
+        base.BeHit(attackInfo.damage);
     }
 }