Exemple #1
0
    private void Update()
    {
        mInputManager.Update();
        if (mAnimEventManager != null)
        {
            mAnimEventManager.Update();
        }
        if (DistributionPlatform.Initialized && !updated_with_initialized_distribution_platform)
        {
            updated_with_initialized_distribution_platform = true;
            SteamUGCService.Initialize();
            Steam steam = new Steam();
            SteamUGCService.Instance.AddClient(steam);
            modManager.distribution_platforms.Add(steam);
            SteamAchievementService.Initialize();
        }
        if (gotKleiUserID)
        {
            gotKleiUserID = false;
            ThreadedHttps <KleiMetrics> .Instance.SetCallBacks(SetONIStaticSessionVariables, SetONIDynamicSessionVariables);

            ThreadedHttps <KleiMetrics> .Instance.StartSession();
        }
        ThreadedHttps <KleiMetrics> .Instance.SetLastUserAction(KInputManager.lastUserActionTicks);

        Localization.VerifyTranslationModSubscription(globalCanvas);
    }