// Token: 0x06000178 RID: 376 RVA: 0x0000B4B0 File Offset: 0x000098B0 public static void SetCustomId(string userId) { if (GameAnalytics.SettingsGA.UseCustomId) { Debug.Log("Initializing with custom id: " + userId); GA_Wrapper.SetCustomUserId(userId); int platformIndex = GameAnalytics.GetPlatformIndex(); if (platformIndex >= 0) { GA_Wrapper.Initialize(GameAnalytics.SettingsGA.GetGameKey(platformIndex), GameAnalytics.SettingsGA.GetSecretKey(platformIndex)); } else { Debug.LogWarning("Unsupported platform (or missing platform in settings): " + Application.platform); } } else { Debug.LogWarning("Custom id is not enabled"); } }
// Token: 0x06000168 RID: 360 RVA: 0x0000B260 File Offset: 0x00009660 private static void Initialize() { if (!Application.isPlaying) { return; } if (GameAnalytics.SettingsGA.InfoLogBuild) { GA_Setup.SetInfoLog(true); } if (GameAnalytics.SettingsGA.VerboseLogBuild) { GA_Setup.SetVerboseLog(true); } int platformIndex = GameAnalytics.GetPlatformIndex(); GA_Wrapper.SetUnitySdkVersion("unity " + Settings.VERSION); GA_Wrapper.SetUnityEngineVersion("unity " + GameAnalytics.GetUnityVersion()); if (platformIndex >= 0) { GA_Wrapper.SetBuild(GameAnalytics.SettingsGA.Build[platformIndex]); } if (GameAnalytics.SettingsGA.CustomDimensions01.Count > 0) { GA_Setup.SetAvailableCustomDimensions01(GameAnalytics.SettingsGA.CustomDimensions01); } if (GameAnalytics.SettingsGA.CustomDimensions02.Count > 0) { GA_Setup.SetAvailableCustomDimensions02(GameAnalytics.SettingsGA.CustomDimensions02); } if (GameAnalytics.SettingsGA.CustomDimensions03.Count > 0) { GA_Setup.SetAvailableCustomDimensions03(GameAnalytics.SettingsGA.CustomDimensions03); } if (GameAnalytics.SettingsGA.ResourceItemTypes.Count > 0) { GA_Setup.SetAvailableResourceItemTypes(GameAnalytics.SettingsGA.ResourceItemTypes); } if (GameAnalytics.SettingsGA.ResourceCurrencies.Count > 0) { GA_Setup.SetAvailableResourceCurrencies(GameAnalytics.SettingsGA.ResourceCurrencies); } if (GameAnalytics.SettingsGA.UseManualSessionHandling) { GameAnalytics.SetEnabledManualSessionHandling(true); } if (platformIndex >= 0) { if (!GameAnalytics.SettingsGA.UseCustomId) { GA_Wrapper.Initialize(GameAnalytics.SettingsGA.GetGameKey(platformIndex), GameAnalytics.SettingsGA.GetSecretKey(platformIndex)); } else { Debug.Log("Custom id is enabled. Initialize is delayed until custom id has been set."); } } else { Debug.LogWarning("GameAnalytics: Unsupported platform (events will not be sent in editor; or missing platform in settings): " + Application.platform); } }