コード例 #1
0
 public void Init(bool postShudown, IStandaloneErrorLogger errorLogger)
 {
     if (postShudown)
     {
         StandaloneErrorReporter.Init(errorLogger);
         return;
     }
     Service.Set(errorLogger);
     StandaloneErrorReporter.Init(errorLogger);
     SetLogUnhandledExceptionAsCrash(value: false);
 }
コード例 #2
0
 public static void Init(IStandaloneErrorLogger errorLogger)
 {
     logger = errorLogger;
     try
     {
         AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
         Application.logMessageReceivedThreaded     += OnLogMessageReceived;
         Debug.Log("CrittercismStandalone: Sucessfully Initialized");
     }
     catch
     {
         Debug.Log("Crittercism Unity plugin failed to initialize.");
     }
 }