public static void LogErrorFormat(string message, params object[] args) { if (!FoundModTools) { ExceptionDialog.Show(String.Format(message, args)); } Debug.LogErrorFormat(message, args); }
public static void LogError(string message) { if (!FoundModTools) { ExceptionDialog.Show(message); } Debug.LogError(message); }
public static void Show(string message) { if (currentDialog != null) { return; } var go = new GameObject("SapphireExceptionDialog"); currentDialog = go.AddComponent <ExceptionDialog>(); currentDialog.message = message; }