Example #1
0
 private static void SetCurrentScene(int sceneId)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setUserSceneTag", new object[]
         {
             sceneId
         });
     }
     catch
     {
     }
 }
Example #2
0
 private static void SetUserInfo(string userInfo)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setUserId", new object[]
         {
             userInfo
         });
     }
     catch
     {
     }
 }
Example #3
0
 private static void SetCurrentScene(int sceneId)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.UnityAgent.Call("setScene", new object[]
         {
             sceneId
         });
     }
     catch
     {
     }
 }
Example #4
0
 private static void AddKeyAndValueInScene(string key, string value)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("putUserData", new object[]
         {
             key,
             value
         });
     }
     catch
     {
     }
 }
Example #5
0
 private static void SetUnityVersion()
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setSdkConfig", new object[]
         {
             "UnityVersion",
             Application.unityVersion
         });
     }
     catch
     {
     }
 }
Example #6
0
 private static void EnableDebugMode(bool enable)
 {
     BuglyAgent._debugMode = enable;
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setLogEnable", new object[]
         {
             enable
         });
     }
     catch
     {
     }
 }
Example #7
0
 private static void AddKeyAndValueInScene(string key, string value)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.UnityAgent.Call("addSceneValue", new object[]
         {
             key,
             value
         });
     }
     catch
     {
     }
 }
Example #8
0
 private static void ReportException(int type, string name, string reason, string stackTrace, bool quitProgram)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.UnityAgent.Call("traceException", new object[]
         {
             name,
             reason,
             stackTrace,
             quitProgram
         });
     }
     catch
     {
     }
 }
Example #9
0
 private static void LogRecord(LogSeverity level, string message)
 {
     if (level < LogSeverity.LogWarning)
     {
         BuglyAgent.DebugLog(level.ToString(), message, new object[0]);
     }
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("printLog", new object[]
         {
             string.Format("<{0}> - {1}", level.ToString(), message)
         });
     }
     catch
     {
     }
 }
Example #10
0
 private static void ReportException(int type, string name, string reason, string stackTrace, bool quitProgram)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("postException", new object[]
         {
             BuglyAgent.TYPE_U3D_CRASH,
             name,
             reason,
             stackTrace,
             quitProgram
         });
     }
     catch
     {
     }
 }
Example #11
0
 private static void InitBuglyAgent(string appId)
 {
     if (BuglyAgent.IsInitialized)
     {
         return;
     }
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("initCrashReport", new object[]
         {
             appId,
             BuglyAgent._configChannel,
             BuglyAgent._configVersion,
             BuglyAgent._configUser,
             BuglyAgent._configDelayTime
         });
         BuglyAgent._isInitialized = true;
     }
     catch
     {
     }
 }