diff --git a/Assets/Scripts/Main Scene/MainSceneController.cs b/Assets/Scripts/Main Scene/MainSceneController.cs index 391158f158a46b11e21cb9c84578247dff48daa2..14fe84730002bcd9e3d0eb08ae3933d5613392cd 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 6e86974bd9c02f100ff091597c1ec59421c8672f..9e905340527189e91323fe962a7ab1eeeeea9f07 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: () => {