public void Initialize(bool consent)
 {
     if (!GameAnalyticsWrapper.Initialize(consent))
     {
         UnregisterEvents();
     }
 }
Exemplo n.º 2
0
 private static void TrackCustomEvent(string eventName,
                                      Dictionary <string, object> eventProperties,
                                      string type,
                                      List <TinySauce.AnalyticsProvider> analyticsProviders)
 {
     if (analyticsProviders.Contains(TinySauce.AnalyticsProvider.GameAnalytics))
     {
         GameAnalyticsWrapper.TrackDesignEvent(eventName, null);
     }
 }
 private static void TrackCustomEvent(string eventName, float value)
 {
     GameAnalyticsWrapper.TrackDesignEvent(eventName, value);
 }
 private static void TrackCustomEvent(string eventName)
 {
     GameAnalyticsWrapper.TrackDesignEvent(eventName, null);
 }
 private static void OnGameFinished(bool levelComplete, float score, string levelNumber, Dictionary <string, object> eventProperties)
 {
     GameAnalyticsWrapper.TrackProgressEvent(levelComplete ? GAProgressionStatus.Complete : GAProgressionStatus.Fail, levelNumber, (int)score);
 }
 private static void OnGameStarted(string levelNumber)
 {
     GameAnalyticsWrapper.TrackProgressEvent(GAProgressionStatus.Start, levelNumber, null);
 }
Exemplo n.º 7
0
 private static void OnGameStarted(string level, Dictionary <string, object> eventProperties)
 {
     GameAnalyticsWrapper.TrackProgressEvent(GAProgressionStatus.Start, level, null);
 }