Пример #1
0
 private void OnSubmitClick(string summary, string description)
 {
     //IL_0026: Unknown result type (might be due to invalid IL or missing references)
     //IL_0040: Unknown result type (might be due to invalid IL or missing references)
     //IL_0041: Unknown result type (might be due to invalid IL or missing references)
     //IL_004d: Unknown result type (might be due to invalid IL or missing references)
     //IL_005e: Unknown result type (might be due to invalid IL or missing references)
     //IL_007d: Unknown result type (might be due to invalid IL or missing references)
     //IL_007e: Unknown result type (might be due to invalid IL or missing references)
     //IL_008a: Unknown result type (might be due to invalid IL or missing references)
     if (m_currentBugReport != null && !m_isSubmittingUserReport)
     {
         m_isSubmittingUserReport = true;
         m_currentBugReport.set_Summary(summary);
         UserReportNamedValue val = default(UserReportNamedValue);
         val.set_Name("Description");
         val.set_Value(description);
         UserReportNamedValue item = val;
         m_currentBugReport.get_Fields().Add(item);
         PlayerData instance = PlayerData.instance;
         if (instance != null)
         {
             val = default(UserReportNamedValue);
             val.set_Name("User Nickname");
             val.set_Value(instance.nickName);
             UserReportNamedValue item2 = val;
             m_currentBugReport.get_Fields().Add(item2);
         }
         UnityUserReporting.get_CurrentClient().SendUserReport(m_currentBugReport, (Action <float, float>)UserReportSubmissionProgress, (Action <bool, UserReport>)UserReportSubmissionCallback);
     }
 }
Пример #2
0
        public void Initialize()
        {
            //IL_0077: Unknown result type (might be due to invalid IL or missing references)
            //IL_0081: Expected O, but got Unknown
            isReady = false;
            m_isCreatingUserReport   = true;
            m_isSubmittingUserReport = false;
            UnityUserReporting.Configure();
            UserReportingClient currentClient = UnityUserReporting.get_CurrentClient();

            currentClient.TakeScreenshot(1024, 1024, (Action <UserReportScreenshot>) delegate
            {
            });
            currentClient.CreateUserReport((Action <UserReport>)CreateUserReportCallback);
            m_updater = new GameObject("BugReportUpdater", new Type[1]
            {
                typeof(BugReportUpdater)
            });
        }