diff --git a/Assets/Scripts/Managers/EnemyManager.cs b/Assets/Scripts/Managers/EnemyManager.cs index a0c4f5effcf0a39ff1d851da19fca2e14dc6953c..ef789d1054f2a3f330ef570211cd2f21845925e6 100644 --- a/Assets/Scripts/Managers/EnemyManager.cs +++ b/Assets/Scripts/Managers/EnemyManager.cs @@ -51,7 +51,7 @@ public class EnemyManager : MonoBehaviour { count++; // fill count with last quest - if (count == 1) isBoss = true; + if (count == 4) isBoss = true; Debug.Log("Turn on " + nameof(this.Spawn)); InvokeRepeating(nameof(this.Spawn), spawnTime, spawnTime); } diff --git a/Assets/Scripts/Managers/SettingManager.cs b/Assets/Scripts/Managers/SettingManager.cs index 22700cee7543fcbbf68fa48ddf0d2c6e328bfa5d..acf3fe2a38e03ac53448bcf0829a484c9a0b0e5e 100644 --- a/Assets/Scripts/Managers/SettingManager.cs +++ b/Assets/Scripts/Managers/SettingManager.cs @@ -26,7 +26,6 @@ public class SettingManager : MonoBehaviour Debug.Log("VOLUME: " + GlobalManager.Instance.Volume); if (Input.GetKeyDown(KeyCode.Escape)) { - Debug.Log("CLOSINGGGGGGGGG"); Close(); } } diff --git a/Assets/Scripts/Managers/ToastManager.cs b/Assets/Scripts/Managers/ToastManager.cs index fab595b2633644bb33efd1c804184c1ea9c052a0..b91bdaa1f0661434a30ee9c2b98899539829ef97 100644 --- a/Assets/Scripts/Managers/ToastManager.cs +++ b/Assets/Scripts/Managers/ToastManager.cs @@ -42,6 +42,11 @@ class ToastManager : MonoBehaviour public void ShowToast(string text, int duration) + { + StartCoroutine(showToastCOR(text, duration)); + } + + public void ShowToastQueue(string text, int duration) { //StartCoroutine(showToastCOR(text, duration)); toasts.Enqueue((text, duration)); diff --git a/Assets/Scripts/Quest/Temple/Temple.cs b/Assets/Scripts/Quest/Temple/Temple.cs index babf0c41df0f59e66cffcd2d4df148c28b0f4719..afbc03c89341b336100ccca093a02b4268ae58e7 100644 --- a/Assets/Scripts/Quest/Temple/Temple.cs +++ b/Assets/Scripts/Quest/Temple/Temple.cs @@ -83,17 +83,17 @@ public class Temple : MonoBehaviour } idxCurrentQuest++; - ToastManager.Instance.ShowToast("Quest " + idxCurrentQuest + " is Completed!", 1); + ToastManager.Instance.ShowToastQueue("Quest " + idxCurrentQuest + " is Completed!", 1); // retrieve the time // add it to the global time // remove the timer var questTime = timer.TakeTime(); - ToastManager.Instance.ShowToast("Your total time now: " + ToastManager.Instance.ShowToastQueue("Your total time now: " + System.TimeSpan.FromSeconds(GlobalManager.Instance.TotalTime).ToString("mm':'ss") + " + " + System.TimeSpan.FromSeconds(questTime).ToString("mm':'ss"), 1); GlobalManager.Instance.TotalTime += questTime; - ToastManager.Instance.ShowToast(System.TimeSpan.FromSeconds(GlobalManager.Instance.TotalTime).ToString("mm':'ss"), 1); + ToastManager.Instance.ShowToastQueue(System.TimeSpan.FromSeconds(GlobalManager.Instance.TotalTime).ToString("mm':'ss"), 1); } private void OnTriggerEnter(Collider other)