/// <summary>Handler used for logging, tracing and debugging.</summary> /// <param name="logString">The string to be logged.</param> /// <param name="stackTrace">The stack trace.</param> /// <param name="type">The type of log message.</param> public void HandleLog(string logString, string stackTrace, LogType type) { Manager.HandleLog(logString, stackTrace, type); if (type == LogType.Exception) { Manager.EnableLogBackup(); Manager.EnqueueTaskAndWait(() => { ExceptionDialogPanelScript.SetDialogText(logString); ExceptionDialogPanelScript.SetVisible(true); return(true); }); } }
/// <summary>Displays the error message dialog with a custom message.</summary> /// <param name="message">The message to display.</param> private void ShowErrorMessage(string message) { MessageDialogPanelScript.SetDialogText(message); MessageDialogPanelScript.SetVisible(true); }