فهرست منبع

“承”关卡不刷阴灵

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;