浏览代码

怪物表新增速度参数

LAPTOP-OM1V99U2\永远de小亡灵 1 年之前
父节点
当前提交
42a5e5a07c
共有 2 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ActionTowerDefense/Assets/Scripts/EnemyCreater.cs
  2. 二进制
      ActionTowerDefense/Luban/Config/Datas/怪物表.xlsx

+ 1 - 0
ActionTowerDefense/Assets/Scripts/EnemyCreater.cs

@@ -162,6 +162,7 @@ public class EnemyCreater : MonoBehaviour
             }
             enemyDic[enemyId].Add(enemy);
             enemy.totalHp = (int)(cfgEnemy.HP * hpRatio);
+            enemy.moveSpeed = cfgEnemy.MoveSpeed;
             for (int i = 0; i < cfgEnemy.Attack1.Count; i++)
             {
                 AttackInfo attackInfo = enemy.attack1Infos[i];

二进制
ActionTowerDefense/Luban/Config/Datas/怪物表.xlsx