Esempio n. 1
0
 private static void SetCurrentScene(int sceneId)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setUserSceneTag", new object[]
         {
             sceneId
         });
     }
     catch
     {
     }
 }
Esempio n. 2
0
 private static void SetUserInfo(string userInfo)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setUserId", new object[]
         {
             userInfo
         });
     }
     catch
     {
     }
 }
Esempio n. 3
0
 private static void SetCurrentScene(int sceneId)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.UnityAgent.Call("setScene", new object[]
         {
             sceneId
         });
     }
     catch
     {
     }
 }
Esempio n. 4
0
 private static void AddKeyAndValueInScene(string key, string value)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("putUserData", new object[]
         {
             key,
             value
         });
     }
     catch
     {
     }
 }
Esempio n. 5
0
 private static void SetUnityVersion()
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setSdkConfig", new object[]
         {
             "UnityVersion",
             Application.unityVersion
         });
     }
     catch
     {
     }
 }
Esempio n. 6
0
 private static void EnableDebugMode(bool enable)
 {
     BuglyAgent._debugMode = enable;
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.GameAgent.CallStatic("setLogEnable", new object[]
         {
             enable
         });
     }
     catch
     {
     }
 }
Esempio n. 7
0
 private static void AddKeyAndValueInScene(string key, string value)
 {
     BuglyAgent.ConfigCrashReporterPackage();
     try
     {
         BuglyAgent.UnityAgent.Call("addSceneValue", new object[]
         {
             key,
             value
         });
     }
     catch
     {
     }
 }
Esempio n. 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
     {
     }
 }
Esempio n. 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
     {
     }
 }
Esempio n. 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
     {
     }
 }
Esempio n. 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
     {
     }
 }