示例#1
0
    void SendTrackerData()
    {
        string        level   = common.level;
        TrackerScript tracker = common.tracker;

        // Song finished
        tracker.Counter(level, "feedbackSubmitted");

        // Accuracy
        tracker.Average(level, "ratingChallenge", ratings[0]);
        tracker.Average(level, "ratingIntuitive", ratings[1]);
        tracker.Average(level, "ratingUnique", ratings[2]);
        tracker.Average(level, "ratingFun", ratings[3]);
        tracker.Average(level, "ratingOverall", ratings[4]);

        // Force send
        tracker.Resume();

        // Exit
        common.OnBackButton();
    }
示例#2
0
    public void SendTrackerData()
    {
        // Song finished
        tracker.Counter(level, "completed");

        // Accuracy
        tracker.Average(level, "scorePercent", Mathf.RoundToInt(scorePercent));            // Rounded is good enough
        tracker.Average(level, "timeDiffAvg", timeDiffAvg);
        tracker.Average(level, "hit_5_MARVELOUS", (int)accuracyTable.GetValue((int)Accuracy.MARVELOUS));
        tracker.Average(level, "hit_4_PERFECT", (int)accuracyTable.GetValue((int)Accuracy.PERFECT));
        tracker.Average(level, "hit_3_GREAT", (int)accuracyTable.GetValue((int)Accuracy.GREAT));
        tracker.Average(level, "hit_2_GOOD", (int)accuracyTable.GetValue((int)Accuracy.GOOD));
        tracker.Average(level, "hit_1_ALMOST", (int)accuracyTable.GetValue((int)Accuracy.ALMOST));
        tracker.Average(level, "hit_0_MISS", (int)accuracyTable.GetValue((int)Accuracy.MISS));

        // Max combos
        tracker.Average(level, "comboMax", comboMax);

        // Force send
        tracker.Resume();
    }