コード例 #1
0
        internal static void TrackProgressEvent(GAProgressionStatus status, string progress, int?score)
        {
            if (_isDisabled)
            {
                return;
            }

            var progressEvent = new ProgressEvent {
                status   = status,
                progress = progress,
                score    = score
            };

            if (!_isInitialized)
            {
                VoodooLog.Log(TAG, "GameAnalytics NOT initialized queuing event..." + status);
                QueuedEvents.Enqueue(progressEvent);
            }
            else
            {
                VoodooLog.Log(TAG, "Sending event " + status + " to GameAnalytics");
                progressEvent.Track();
            }
        }