소스 검색

“承”关卡不刷阴灵

WGL 2 달 전
부모
커밋
76f2e4e60a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      ActionTowerDefense/Assets/Scripts/EnemyCreater.cs

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

@@ -466,6 +466,10 @@ public class EnemyCreater : MonoBehaviour
         Vector3 pos, bool active = false)
     {
         SingleEnemyConfig cfgEnemy = GameManager.instance.allCfgData.CfgEnemy.Get(EnemyName);
+        if (cfgEnemy.Type == "ESpirits" && GameManager.instance.leveType == LeveType.Introduction)
+        {
+            return null;
+        }
         string enemyStr = $"Prefab/{cfgEnemy.Type}/{cfgEnemy.EnemyPrefab}";
         float posx = pos.x + Random.Range(-cfgEnemy.Radius[0], cfgEnemy.Radius[0]);
         float posy = pos.y + Random.Range(-cfgEnemy.Radius[1], cfgEnemy.Radius[1]) - 1;