Просмотр исходного кода

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

HY-LSZNWIN10\Administrator 5 часов назад
Родитель
Сommit
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()
     {