diff --git a/302/Assets/Scripts/AnomalyManager.cs b/302/Assets/Scripts/AnomalyManager.cs index e91a15b..17c8548 100644 --- a/302/Assets/Scripts/AnomalyManager.cs +++ b/302/Assets/Scripts/AnomalyManager.cs @@ -11,6 +11,7 @@ public class AnomalyManager : MonoBehaviour private const int AnomalyCount = 8; // 사이즈 8 private System.Random random = new System.Random(); public bool checkSpecificAnomaly; + public bool checkIntersect; public int SpecificAnomalyNum; public GameObject currentAnomalyInstance; // 현재 활성화된 이상현상 인스턴스 // 하나의 AnomalyManager만 보장 @@ -48,7 +49,8 @@ private void GenerateAnomalyList() } else { - anomaly = SpecificAnomalyNum; + if(checkIntersect && i%2==1) anomaly = 0; + else anomaly = SpecificAnomalyNum; } anomalyList.Add(anomaly); } diff --git a/302/Assets/Scripts/SpecificAnomalyManager/Anomaly27Manager.cs b/302/Assets/Scripts/SpecificAnomalyManager/Anomaly27Manager.cs index 27e977e..9e23236 100644 --- a/302/Assets/Scripts/SpecificAnomalyManager/Anomaly27Manager.cs +++ b/302/Assets/Scripts/SpecificAnomalyManager/Anomaly27Manager.cs @@ -4,24 +4,10 @@ public class Anomaly27Manager : MonoBehaviour { - public string targetObjectName = "clock"; // 비활성화할 게임 오브젝트 이름 public GameObject clockPrefab; // 소환할 프리팹 private void Start() { - // 특정 이름의 게임 오브젝트 찾기 - GameObject targetObject = GameObject.Find(targetObjectName); - if (targetObject != null) - { - // 게임 오브젝트 비활성화 - targetObject.SetActive(false); - Debug.Log($"Anomaly 27: Found and deactivated target object {targetObjectName}"); - } - else - { - Debug.LogWarning($"Anomaly 27: Target object {targetObjectName} not found in the scene."); - } - // 프리팹 소환 if (clockPrefab != null) {