From 43a28e32eade8d10442b534008e304c81f87209d Mon Sep 17 00:00:00 2001
From: Addin Munawwar <91366027+moonawar@users.noreply.github.com>
Date: Sat, 11 May 2024 15:51:36 +0700
Subject: [PATCH] feat: last quest tweaks

---
 .../Scripts/Main Scene/MainSceneController.cs | 20 +++++++++----------
 Assets/Scripts/Quest/QuestManager.cs          |  8 ++++----
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/Assets/Scripts/Main Scene/MainSceneController.cs b/Assets/Scripts/Main Scene/MainSceneController.cs
index 391158f..14fe847 100644
--- a/Assets/Scripts/Main Scene/MainSceneController.cs	
+++ b/Assets/Scripts/Main Scene/MainSceneController.cs	
@@ -57,6 +57,16 @@ public class MainSceneController : MonoBehaviour
             PlayerPrefs.SetInt("SelectedSlot", selectedSlot);
         }
 
+        // Setting up game over
+        GameObject gameOverUI = GameObject.Find("Gameplay UI/GameOver UI");
+        gameOver = gameOverUI.GetComponent<GameOver>();
+
+        managers = GameObject.FindWithTag("GameManager");
+        questManager = managers.GetComponent<QuestManager>();
+
+        gamePlayUI = GameObject.Find("Gameplay UI");
+        gamePlayUI.SetActive(false);
+
         if (selectedSlot == -1)
         {
             Debug.Log("No slot selected");
@@ -100,16 +110,6 @@ public class MainSceneController : MonoBehaviour
                 }
             }
         }
-        
-        // Setting up game over
-        GameObject gameOverUI = GameObject.Find("Gameplay UI/GameOver UI");
-        gameOver = gameOverUI.GetComponent<GameOver>();
-
-        managers = GameObject.FindWithTag("GameManager");
-        questManager = managers.GetComponent<QuestManager>();
-
-        gamePlayUI = GameObject.Find("Gameplay UI");
-        // gamePlayUI.SetActive(false);
     }
     void Update()
     {
diff --git a/Assets/Scripts/Quest/QuestManager.cs b/Assets/Scripts/Quest/QuestManager.cs
index 6e86974..9e90534 100644
--- a/Assets/Scripts/Quest/QuestManager.cs
+++ b/Assets/Scripts/Quest/QuestManager.cs
@@ -85,14 +85,14 @@ public class QuestManager : MonoBehaviour
                     SpawnArea = new SpawnArea { Origin = spawnTransform, Radius = 36},
                     Mob = Keroco,
                     MobCount = 10,
-                    SpawnInterval = 5f
+                    SpawnInterval = 6f
                 },
                 new SpawnerData
                 {
                     SpawnArea = new SpawnArea { Origin = spawnTransform, Radius = 50},
                     Mob = Thrower,
                     MobCount = 10,
-                    SpawnInterval = 30f
+                    SpawnInterval = 6f
                 }
             }
         }, onQuestStarted: () => {
@@ -120,8 +120,8 @@ public class QuestManager : MonoBehaviour
                 {
                     SpawnArea = new SpawnArea { Origin = spawnTransform, Radius = 36},
                     Mob = General,
-                    MobCount = 6,
-                    SpawnInterval = 2f
+                    MobCount = 8,
+                    SpawnInterval = 8f
                 },
             }
         }, onQuestStarted: () => {
-- 
GitLab