Exemplo n.º 1
0
    public static void SendGameQuitEvent()
    {
        message.Clear();
        message["version"]        = BatteryGolemVersion.FormatVersion(BatteryGolemVersion.CURRENT);
        message["completed_game"] = completedGame;

        Analytics.CustomEvent("game_quit", message);
    }
Exemplo n.º 2
0
    public static void SendGameStartedEvent()
    {
        message.Clear();
        message["version"]        = BatteryGolemVersion.FormatVersion(BatteryGolemVersion.CURRENT);
        message["completed_game"] = completedGame;

        Analytics.CustomEvent("game_started", message);

        startTime = Time.time;
    }
Exemplo n.º 3
0
    public static void SendGameCompletedEvent()
    {
        message.Clear();
        message["playtime"] = Time.time - startTime;
        message["version"]  = BatteryGolemVersion.FormatVersion(BatteryGolemVersion.CURRENT);

        Analytics.CustomEvent("game_complete", message);

        completedGame = true;
    }