private void PerformShowAlert() { if (alertPanel != null && alertToShow.Count > 0) { alertPanel.gameObject.SetActive(true); bool shouldPauseGame = false; alertPanel.StartDialog(alertToShow.ToArray(), shouldPauseGame); alertToShow.Clear(); charactersWhoLeveledUp.Clear(); } }
private void ShowAlert(string message) { if (SceneManager.GetActiveScene() != SceneManager.GetSceneByName("Intro")) { if (SceneManager.GetActiveScene() == SceneManager.GetSceneByName("Battle")) { questController.alertToShow.Insert(0, message); } else { alertPanel.gameObject.SetActive(true); string[] dialog = new string[] { message }; bool shouldPauseGame = false; alertPanel.StartDialog(dialog, shouldPauseGame); } } }