Exemple #1
0
        private void Awake()
        {
            _page1       = transform.Find("Page1").GetComponent <RawImage>();
            _page1.color = new Color(1, 1, 1, 0.5f);

            Tweener tween1 = _page1.DOFade(1, 0.6f);

            DOTween.Sequence()
            .Append(tween1)
            .AppendInterval(1.0f)
            .AppendInterval(1.0f)
            .onComplete = () => { SceneManager.LoadSceneAsync("Main").completed += OnLoadScene; };

            if ((float)Screen.height / Screen.width > 1.80)
            {
                CanvasScaler scaler = transform.GetComponent <CanvasScaler>();
                scaler.matchWidthOrHeight = 1.0f;
            }

            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                BuglyAgent.ConfigDebugMode(false);
                BuglyAgent.ConfigAutoQuitApplication(false);
//                BuglyAgent.InitWithAppId ("6f4e68ecf4"); //新马
                BuglyAgent.InitWithAppId("f50da4d1b1");   //国内
            }
        }
Exemple #2
0
    void Awake()
    {
        // Enable the debug log print
        BuglyAgent.ConfigDebugMode(false);
        // Config default channel, version, user
        BuglyAgent.ConfigDefault(null, null, null, 0);
        // Config auto report log level, default is LogSeverity.LogError, so the LogError, LogException log will auto report
        BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogError);
        // Config auto quit the application make sure only the first one c# exception log will be report, please don't set TRUE if you do not known what are you doing.
        BuglyAgent.ConfigAutoQuitApplication(false);
        // If you need register Application.RegisterLogCallback(LogCallback), you can replace it with this method to make sure your function is ok.
        BuglyAgent.RegisterLogCallback(null);

        // Init the bugly sdk and enable the c# exception handler.
        BuglyAgent.InitWithAppId(BuglyAppID);

        // TODO Required. If you do not need call 'InitWithAppId(string)' to initialize the sdk(may be you has initialized the sdk it associated Android or iOS project),
        // please call this method to enable c# exception handler only.
        BuglyAgent.EnableExceptionHandler();

        // TODO NOT Required. If you need to report extra data with exception, you can set the extra handler
        BuglyAgent.SetLogCallbackExtrasHandler(MyLogCallbackExtrasHandler);

        Destroy(this);
    }
        static void InitBugly()
        {
            if (Application.isEditor)
            {
                return;
            }

            // Enable the debug log print
            BuglyAgent.ConfigDebugMode(enable: Config.enableDebug);
            // Config default channel, version, user
            BuglyAgent.ConfigDefault(channel: Config.store, $"{Config.versionName}-{Config.versionCode}",
                                     user: UserInfoManager.getUserInfo().userId ?? "anonymous", 0);
            // Config auto report log level, default is LogSeverity.LogError, so the LogError, LogException log will auto report
            BuglyAgent.ConfigAutoReportLogLevel(level: LogSeverity.LogWarning);
            // Config auto quit the application make sure only the first one c# exception log will be report, please don't set TRUE if you do not known what are you doing.
            BuglyAgent.ConfigAutoQuitApplication(false);
            // If you need register Application.RegisterLogCallback(LogCallback), you can replace it with this method to make sure your function is ok.
            BuglyAgent.RegisterLogCallback(null);

            // Init the bugly sdk and enable the c# exception handler.
            BuglyAgent.InitWithAppId(appId: Config.buglyId);

            // please call this method to enable c# exception handler only.
            BuglyAgent.EnableExceptionHandler();
        }
Exemple #4
0
 static public int ConfigAutoQuitApplication_s(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         System.Boolean a1;
         checkType(l, 1, out a1);
         BuglyAgent.ConfigAutoQuitApplication(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemple #5
0
 private void InitBugly()
 {
     BuglyAgent.ConfigDebugMode(SystemConfig.IsBuglySDKLogOn);
     BuglyAgent.ConfigDefault(SDKManager.Instance.GetSDKName(), this.GetLocalVersionsString(), SystemInfoTools.GetDeviceName(), 0L);
     BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogError);
     BuglyAgent.ConfigAutoQuitApplication(false);
     BuglyAgent.InitWithAppId("900057844");
     BuglyAgent.EnableExceptionHandler();
 }
Exemple #6
0
 private void Awake()
 {
     BuglyAgent.ConfigDebugMode(false);
     BuglyAgent.ConfigDefault(null, null, null, 0L);
     BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogError);
     BuglyAgent.ConfigAutoQuitApplication(false);
     BuglyAgent.RegisterLogCallback(null);
     BuglyAgent.InitWithAppId("YOUR APP ID GOES HERE");
     Object.Destroy(this);
 }
Exemple #7
0
 private static void Bugly_Init()
 {
     BuglyAgent.ConfigDebugMode(false);
     BuglyAgent.ConfigDefault(null, null, null, 0L);
     BuglyAgent.ConfigAutoReportLogLevel(5);
     BuglyAgent.ConfigAutoQuitApplication(false);
     BuglyAgent.RegisterLogCallback(null);
     BuglyAgent.InitWithAppId("8c142b9f46");
     BuglyAgent.EnableExceptionHandler();
 }
 private void Awake()
 {
     BuglyAgent.ConfigDebugMode(false);
     BuglyAgent.ConfigDefault(null, null, null, 0L);
     BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogError);
     BuglyAgent.ConfigAutoQuitApplication(false);
     BuglyAgent.RegisterLogCallback(null);
     BuglyAgent.InitWithAppId("YOUR APP ID GOES HERE");
     BuglyAgent.EnableExceptionHandler();
     BuglyAgent.SetLogCallbackExtrasHandler(new Func <Dictionary <string, string> >(BuglyInit.MyLogCallbackExtrasHandler));
     UnityEngine.Object.Destroy(this);
 }
Exemple #9
0
        static int _m_ConfigAutoQuitApplication_xlua_st_(RealStatePtr L)
        {
            try {
                {
                    bool _autoQuit = LuaAPI.lua_toboolean(L, 1);

                    BuglyAgent.ConfigAutoQuitApplication(_autoQuit);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
 private void Awake()
 {
     if (Application.platform == RuntimePlatform.Android && !this.androidEnable)
     {
         return;
     }
     if (Application.platform == RuntimePlatform.IPhonePlayer && !this.iosEnable)
     {
         return;
     }
     BuglyAgent.ConfigCrashReporter(1, 1);
     BuglyAgent.ConfigDebugMode(true);
     BuglyAgent.ConfigDefault(string.Empty, GlobalSettings.Instance.versionConfig.appVersion, "10000", 0L);
     BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogError);
     BuglyAgent.ConfigAutoQuitApplication(true);
     BuglyAgent.RegisterLogCallback(new BuglyAgent.LogCallbackDelegate(CallbackDelegate.Instance.OnApplicationLogCallbackHandler));
     BuglyAgent.InitWithAppId("900016162");
     BuglyAgent.SetScene(3450);
     BuglyAgent.EnableExceptionHandler();
 }
Exemple #11
0
    void Awake()
    {
        // Enable the debug log print
        BuglyAgent.ConfigDebugMode(false);
        // Config default channel, version, user
        BuglyAgent.ConfigDefault(null, null, null, 0);
        // Config auto report log level, default is LogSeverity.LogError, so the LogError, LogException log will auto report
        BuglyAgent.ConfigAutoReportLogLevel(LogSeverity.LogError);
        // Config auto quit the application make sure only the first one c# exception log will be report, please don't set TRUE if you do not known what are you doing.
        BuglyAgent.ConfigAutoQuitApplication(false);
        // If you need register Application.RegisterLogCallback(LogCallback), you can replace it with this method to make sure your function is ok.
        BuglyAgent.RegisterLogCallback(null);

        // Init the bugly sdk and enable the c# exception handler.
        BuglyAgent.InitWithAppId(BuglyAppID);

        // If you has init the sdk in Android or iOS project, please comment last line and uncomment follow method to enable c# exception handler only:
        // BuglyAgent.EnableExceptionHandler ();

        Destroy(this);
    }
 public void SetAutoQuitApplication(bool autoExit)
 {
     BuglyAgent.ConfigAutoQuitApplication(autoExit);
 }