Esempio n. 1
0
 public void OnEnter()
 {
     new WWWManager();
     Crittercism.SetLogUnhandledExceptionAsCrash(true);
     new EventManager();
     new CrashEventDataController();
     LangUtils.CreateLangService();
     new CameraManager();
     Service.CameraManager.MainCamera.Camera.enabled = false;
     new AssetManager();
     this.loadingScreen         = new LoadingScreen();
     this.loadingScreen.Visible = true;
     this.InitStartupTasks();
 }
Esempio n. 2
0
        private static void OnBeforeSceneLoadRuntimeMethod()
                #endif
        {
            if (isInitialized == false)
            {
#if !ENABLE_LOGS
                Debug.unityLogger.logEnabled = false;
                Ximmerse.InputSystem.XDevicePlugin.s_isLogEnabled = false;
#endif

                //init app config
                IApplicationConfig ApplicationConfig = new Config();

#if !UNITY_EDITOR_WIN
                //init analytics
                Analytics.Init(ApplicationConfig.GetPlatformConfig(ServiceType.Swrve));

                //init Crittercism
                Crittercism.Init(ApplicationConfig.GetPlatformConfig(ServiceType.Apteligent).Id);
                Crittercism.SetLogUnhandledExceptionAsCrash(false);
#endif

#if !UNITY_EDITOR
                //init KpiTracking
                KpiTracking.InitKpiTracking();
#endif

                //init remote logging
                                #if !RC_BUILD
                remoteLogger = new LogRemote(DefaultLogRemotePort);
                Log.Debug("remoteLogger = " + remoteLogger);

                SceneManager.sceneLoaded += OnSceneLoaded;
                                #endif

                                #if !SKU_CHINA
                DownloadController.PurgeCpipeCache();
                                #endif

                isInitialized = true;
            }
        }