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

修改enemyCreater脚本中boss的id范围

SZAND\msx_2 пре 7 месеци
родитељ
комит
56573a9338

+ 3 - 0
ActionTowerDefense/Assets/Scripts/Character.cs

@@ -89,6 +89,9 @@ public class Character : MonoBehaviour
     public bool showInjuryNum;      //伤害跳字开关
     public bool canFly = false;
 
+    [Header("护甲")]
+    public int armor;
+
     [Header("锁魂塔")]
     public LockSoul ls;
     public bool isInSoulTower;      //在锁魂塔范围内

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

@@ -288,7 +288,7 @@ public class EnemyCreater : MonoBehaviour
     {
         SingleEnemyConfig cfgEnemy = GameManager.instance.allCfgData.CfgEnemy.Get(enemyId);
         GameObject enemyObj = Util.Instantiate(cfgEnemy.EnemyPrefab, pos);
-        if (enemyId > 1000)
+        if (enemyId > 30000)
         {
             Boss boss = enemyObj.GetComponentInChildren<Boss>();
         }