From deab1344a73affcb1e339983d19049198b8b0dea Mon Sep 17 00:00:00 2001 From: Prown0 <100746335+Prown0@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:09:16 +0900 Subject: [PATCH] Fix bug that multiple anomaly controllers are initiated --- ...{AbstractAnomalyController.cs => AbstractAnomalyComposite.cs} | 0 ...nomalyController.cs.meta => AbstractAnomalyComposite.cs.meta} | 0 302/Assets/Scripts/AnomalyManager.cs | 1 - 3 files changed, 1 deletion(-) rename 302/Assets/Scripts/{AbstractAnomalyController.cs => AbstractAnomalyComposite.cs} (100%) rename 302/Assets/Scripts/{AbstractAnomalyController.cs.meta => AbstractAnomalyComposite.cs.meta} (100%) diff --git a/302/Assets/Scripts/AbstractAnomalyController.cs b/302/Assets/Scripts/AbstractAnomalyComposite.cs similarity index 100% rename from 302/Assets/Scripts/AbstractAnomalyController.cs rename to 302/Assets/Scripts/AbstractAnomalyComposite.cs diff --git a/302/Assets/Scripts/AbstractAnomalyController.cs.meta b/302/Assets/Scripts/AbstractAnomalyComposite.cs.meta similarity index 100% rename from 302/Assets/Scripts/AbstractAnomalyController.cs.meta rename to 302/Assets/Scripts/AbstractAnomalyComposite.cs.meta diff --git a/302/Assets/Scripts/AnomalyManager.cs b/302/Assets/Scripts/AnomalyManager.cs index 608070f..4e0e015 100644 --- a/302/Assets/Scripts/AnomalyManager.cs +++ b/302/Assets/Scripts/AnomalyManager.cs @@ -71,7 +71,6 @@ private void GenerateAnomalyList() anomalyList[randomIndex] = highAnomaly; } Debug.Log($"[AnomalyManager] Generated Anomaly List: {string.Join(", ", anomalyList)}"); - CheckAndInstantiateAnomaly(); } // 20% 확률로 0, 나머지 확률로 1~31의 이상현상을 생성 private int GenerateRandomAnomaly()