Skip to content
Snippets Groups Projects
Commit 43a28e32 authored by Addin Munawwar's avatar Addin Munawwar
Browse files

feat: last quest tweaks

parent c12f825b
Branches
Tags
No related merge requests found
......@@ -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()
{
......
......@@ -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: () => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment