Exemple #1
0
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// We use this to pull the fields that have been set in the
 /// Unity editor and pass them to the Bugsnag client.
 /// </summary>
 void Awake()
 {
     Bugsnag.Init(BugsnagApiKey);
     Bugsnag.Configuration.AutoNotify           = AutoNotify;
     Bugsnag.Configuration.AutoCaptureSessions  = AutoCaptureSessions;
     Bugsnag.Configuration.UniqueLogsTimePeriod = TimeSpan.FromSeconds(UniqueLogsPerSecond);
     Bugsnag.Configuration.NotifyLevel          = NotifyLevel;
     Bugsnag.Configuration.ReleaseStage         = Debug.isDebugBuild ? "development" : "production";
     Bugsnag.Configuration.MaximumBreadcrumbs   = MaximumBreadcrumbs;
 }
        /// <summary>
        /// Awake is called when the script instance is being loaded.
        /// We use this to pull the fields that have been set in the
        /// Unity editor and pass them to the Bugsnag client.
        /// </summary>
        void Awake()
        {
            Bugsnag.Init(BugsnagApiKey);
            Bugsnag.Configuration.AutoNotify           = AutoNotify;
            Bugsnag.Configuration.AutoCaptureSessions  = AutoCaptureSessions;
            Bugsnag.Configuration.UniqueLogsTimePeriod = TimeSpan.FromSeconds(UniqueLogsPerSecond);
            Bugsnag.Configuration.NotifyLevel          = NotifyLevel;
            Bugsnag.Configuration.ReleaseStage         = Debug.isDebugBuild ? "development" : "production";
            Bugsnag.Configuration.MaximumBreadcrumbs   = MaximumBreadcrumbs;

            Bugsnag.Configuration.ScriptingBackend       = FindScriptingBackend();
            Bugsnag.Configuration.DotnetScriptingRuntime = FindDotnetScriptingRuntime();
            Bugsnag.Configuration.DotnetApiCompatibility = FindDotnetApiCompatibility();
        }