Преглед изворни кода

给蝌蚪增加了随关卡等级血量成长

HY-LSZNWIN10\Administrator пре 5 часа
родитељ
комит
c8903a1486
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      ActionTowerDefense/Assets/Scripts/Characters/Polliwog.cs

+ 1 - 0
ActionTowerDefense/Assets/Scripts/Characters/Polliwog.cs

@@ -48,6 +48,7 @@ public class Polliwog : Enemy
     {
         base.Start();
         attackTrigger.GetComponent<AttackTrigger>().attackMethod.attackInfo.damage = (int)(GameManager.instance.levelRatio * attackTrigger.GetComponent<AttackTrigger>().attackMethod.attackInfo.damage);
+        totalHp = (int)(totalHp * GameManager.instance.levelRatio);
     }
     protected override void OnEnable()
     {