public void SendFeedback() { if (!DebugConsoleUtils.IsEmailAddressValid(m_emailField.text)) { ShowDialogBox("The email address you have entered is not valid!", DialogBox.ButtonLayout.OK); return; } if (string.IsNullOrEmpty(m_subjectField.text)) { string message = FeedbackTypeValue == FeedbackType.Bug ? "Your bug report must contain a subject!" : "Your feedback must contain a subject!"; ShowDialogBox(message, DialogBox.ButtonLayout.OK); return; } if (string.IsNullOrEmpty(m_contentField.text)) { string message = FeedbackTypeValue == FeedbackType.Bug ? "Your bug report cannot be empty!" : "Your feedback cannot be empty!"; ShowDialogBox(message, DialogBox.ButtonLayout.OK); return; } if (FeedbackForm == null) { ShowDialogBox("No feedback form was assigned!", DialogBox.ButtonLayout.OK); return; } if (FeedbackTypeValue == FeedbackType.Bug) { StartCoroutine(SendBugReportAsync()); } else { StartCoroutine(SendEnhancementAsync()); } }
private string PrintSystemInfo() { return(m_systemInfoToggle.isOn ? DebugConsoleUtils.PrintSystemInfo() : "N/A"); }
public void systemInfo() { DebugConsole.Log(LogLevel.Debug, DebugConsoleUtils.PrintSystemInfo()); }