소스 검색

修改enemyCreater脚本中boss的id范围

SZAND\msx_2 7 달 전
부모
커밋
56573a9338
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      ActionTowerDefense/Assets/Scripts/Character.cs
  2. 1 1
      ActionTowerDefense/Assets/Scripts/EnemyCreater.cs

+ 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>();
         }