Exemplo n.º 1
0
        private IEnumerator SendExceptionReport(string message, string stackTrace, string hash)
        {
            string report = ExceptionCatcher.BuildMarkup(message, stackTrace, hash);

            byte[]  bytes = Encoding.UTF8.GetBytes(report);
            WWWForm form  = new WWWForm();

            form.AddBinaryData("file", bytes, "ReportedIssue.xml", "application/octet-stream");
            using (WWW www = new WWW(this.SubmitURL, form))
            {
                yield return(www);
            }
            Singleton <Login> .instance.BnQuit();

            Application.Quit();
            yield break;
        }