示例#1
0
 public void Init(bool postShudown, IStandaloneErrorLogger errorLogger)
 {
     if (postShudown)
     {
         StandaloneErrorReporter.Init(errorLogger);
         return;
     }
     Service.Set(errorLogger);
     StandaloneErrorReporter.Init(errorLogger);
     SetLogUnhandledExceptionAsCrash(value: false);
 }
 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.");
     }
 }