Esempio n. 1
0
    /// <summary>
    /// Did the application crash on the previous load?
    /// </summary>
    public static bool DidCrashOnLastLoad()
    {
#if UNITY_IOS
        return(CrittercismIOS.DidCrashOnLastLoad());
#elif UNITY_ANDROID
        return(CrittercismAndroid.DidCrashOnLastLoad());
#else
        return(false);
#endif
    }
    // 유틸 : 크래시 래포트 설정
    void SetCrittercism()
    {
#if UNITY_ANDROID
        UnityEngine.Debug.LogFormat("Crittercism.DidCrashOnLastLoad = {0}", CrittercismAndroid.DidCrashOnLastLoad());
        CrittercismAndroid.Init("20fb64bf760d44589b6aefeb6bcb220700555300");
        CrittercismAndroid.SetLogUnhandledExceptionAsCrash(true);
#elif UNITY_IPHONE || UNITY_IOS
        UnityEngine.Debug.LogFormat("Crittercism.DidCrashOnLastLoad = {0}", CrittercismIOS.DidCrashOnLastLoad());
        CrittercismIOS.Init("7d02af2372694b93b84d75a999dd7dd400555300");
        CrittercismIOS.SetLogUnhandledExceptionAsCrash(true);
#endif
    }
Esempio n. 3
0
    // 유틸 : 크래시 래포트 설정
    void SetCrittercism()
    {
#if UNITY_EDITOR
        UnityEngine.Debug.LogFormat("AOS Crittercism : {0}", m_strAppKeyForAOS);
        UnityEngine.Debug.LogFormat("IOS Crittercism : {0}", m_strAppKeyForIOS);
#elif UNITY_ANDROID
        UnityEngine.Debug.LogFormat("Crittercism.DidCrashOnLastLoad = {0}", CrittercismAndroid.DidCrashOnLastLoad());
        CrittercismAndroid.Init(m_strAppKeyForAOS);
        CrittercismAndroid.SetLogUnhandledExceptionAsCrash(true);
#elif UNITY_IPHONE || UNITY_IOS
        UnityEngine.Debug.LogFormat("Crittercism.DidCrashOnLastLoad = {0}", CrittercismIOS.DidCrashOnLastLoad());
        CrittercismIOS.Init(m_strAppKeyForIOS);
        CrittercismIOS.SetLogUnhandledExceptionAsCrash(true);
#endif
    }
Esempio n. 4
0
 private CrittercismTestGUI()
 {
     Debug.Log("DidCrashOnLastLoad: " + CrittercismIOS.DidCrashOnLastLoad());
     CrittercismIOS.SetLogUnhandledExceptionAsCrash(true);
 }