Exemplo n.º 1
0
    private void Awake()
    {
        instance = this;
        GameAnalytics.Initialize();

        GameAnalytics.OnRemoteConfigsUpdatedEvent += () =>
        {
            if (GameAnalytics.IsRemoteConfigsReady() == false)
            {
                return;
            }
            ABTest.OnRecieved?.Invoke();

            var remoteConfig = GameAnalytics.GetRemoteConfigsContentAsString();
            if (remoteConfig.HasContent(5))
            {
                Debug.Log("GameAnalytics remote config recieved:\n" + GameAnalytics.GetRemoteConfigsContentAsString());
            }
        };
    }