From 12c44104732db79e861b4ce27e2f868af355cd68 Mon Sep 17 00:00:00 2001 From: fernaldyl <90769501+fernaldy112@users.noreply.github.com> Date: Sat, 15 Apr 2023 15:10:39 +0700 Subject: [PATCH] fix: handle spawn 2 boss --- Assets/Scripts/Quest/QuestManager.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Quest/QuestManager.cs b/Assets/Scripts/Quest/QuestManager.cs index df00913..642d6e3 100644 --- a/Assets/Scripts/Quest/QuestManager.cs +++ b/Assets/Scripts/Quest/QuestManager.cs @@ -84,8 +84,11 @@ public class QuestManager : MonoBehaviour new List<MonsterType>() { MonsterType.SOULEATER }, 100 )); - - StartCoroutine(nextQuest()); + if (activeQuestIdx == 0) + { + StartCoroutine(nextQuest()); + } + } void Update() @@ -163,10 +166,8 @@ public class QuestManager : MonoBehaviour private IEnumerator LoadVictoryScene() { - Debug.Log("Victory"); yield return new WaitForSeconds(3); SceneManager.LoadScene("Victory"); - Debug.Log("tes"); } private IEnumerator nextQuest() -- GitLab