예제 #1
0
        override internal void StartSDK(bool newPlayer)
        {
            started = true;

            if (newPlayer)
            {
                engageCache.Clear();
                actionStore.Clear();
            }

            NewSession();

            if (launchNotificationEvent != null)
            {
                RecordEvent(launchNotificationEvent);
                launchNotificationEvent = null;
            }

            TriggerDefaultEvents(newPlayer);

            // setup automated event uploads
            if (Settings.BackgroundEventUpload && !IsInvoking("Upload"))
            {
                InvokeRepeating(
                    "Upload",
                    Settings.BackgroundEventUploadStartDelaySeconds,
                    Settings.BackgroundEventUploadRepeatRateSeconds);
            }
        }
예제 #2
0
        override internal void StartSDK(bool newPlayer)
        {
            started        = true;
            this.newPlayer = newPlayer;
            if (newPlayer)
            {
                engageCache.Clear();
                actionStore.Clear();
                hasSentDefaultEvents = false;
            }

            retryAttempts = 0;
            NewSession();

            // setup automated event uploads
            if (Settings.BackgroundEventUpload)
            {
                InvokeRepeating(
                    "Upload",
                    Settings.BackgroundEventUploadStartDelaySeconds,
                    Settings.BackgroundEventUploadRepeatRateSeconds);
            }

            if (Settings.SendGameRunningEveryMinute)
            {
                RecordGameRunningEvent();
            }
        }
예제 #3
0
        public void ClearsCache()
        {
            uut.Put("dp", "flavour", "data");
            uut.Clear();

            Expect(uut.Get("dp", "flavour"), Is.Null);
        }
예제 #4
0
        override internal void StartSDK(bool newPlayer)
        {
            started        = true;
            this.newPlayer = newPlayer;
            if (newPlayer)
            {
                engageCache.Clear();
                actionStore.Clear();
                hasSentDefaultEvents = false;
            }

            NewSession();

            // setup automated event uploads
            if (Settings.BackgroundEventUpload && !IsInvoking("Upload"))
            {
                InvokeRepeating(
                    "Upload",
                    Settings.BackgroundEventUploadStartDelaySeconds,
                    Settings.BackgroundEventUploadRepeatRateSeconds);
            }
        }
예제 #5
0
 override internal void ClearPersistentData()
 {
     if (eventStore != null)
     {
         eventStore.ClearAll();
     }
     if (engageCache != null)
     {
         engageCache.Clear();
     }
     if (ImageMessageStore != null)
     {
         ImageMessageStore.Clear();
     }
 }