Esempio n. 1
0
 /// <summary>
 /// Sets the custom identifier.
 /// </summary>
 /// <param name="userId">User identifier.</param>
 public static void SetCustomId(string userId)
 {
     if (SettingsGA.UseCustomId)
     {
         Debug.Log("Initializing with custom id: " + userId);
         GA_Wrapper.SetCustomUserId(userId);
         int index = (int)GetPlatform();
         GA_Wrapper.Initialize(SettingsGA.GetGameKey(index - 1), SettingsGA.GetSecretKey(index - 1));
     }
     else
     {
         Debug.LogWarning("Custom id is not enabled");
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the custom identifier.
 /// </summary>
 /// <param name="userId">User identifier.</param>
 public static void SetCustomId(string userId)
 {
     if (SettingsGA.UseCustomId)
     {
         Debug.Log("Initializing with custom id: " + userId);
         GA_Wrapper.SetCustomUserId(userId);
         int index = GetPlatformIndex();
         if (index >= 0)
         {
             GA_Wrapper.Initialize(SettingsGA.GetGameKey(index), SettingsGA.GetSecretKey(index));
         }
         else
         {
             Debug.LogWarning("Unsupported platform (or missing platform in settings): " + Application.platform);
         }
     }
     else
     {
         Debug.LogWarning("Custom id is not enabled");
     }
 }
Esempio n. 3
0
 public static void SetCustomId(string userId)
 {
     UnityEngine.Debug.Log("Initializing with custom id: " + userId);
     GA_Wrapper.SetCustomUserId(userId);
 }
 public static void SetCustomId(string userId)
 {
     GA_Wrapper.SetCustomUserId(userId);
 }