Ejemplo n.º 1
0
    // send data to google forms
    public void PublishData()
    {
        WWWForm formFields = new WWWForm();

        formFields.AddField("entry.1875990408", gameStats.scenario_name);
        formFields.AddField("entry.989998412", gameStats.quest_name);
        formFields.AddField("entry.84574628", gameStats.victory);
        formFields.AddField("entry.227102998", gameStats.rating);
        formFields.AddField("entry.2125749314", gameStats.comments);
        formFields.AddField("entry.170795919", gameStats.duration.ToString());
        formFields.AddField("entry.376629889", gameStats.players_count.ToString());
        formFields.AddField("entry.1150567176", gameStats.investigators_list);
        formFields.AddField("entry.2106598722", gameStats.language_selected);
        formFields.AddField("entry.1047979960", gameStats.events_list);

        // submit async
        HTTPManager.Upload("https://docs.google.com/forms/u/1/d/e/1FAIpQLSfiFPuQOTXJI54LI-WNvn1K6qCkM5xErxJdUUJRhCZthaIqcA/formResponse?hl=en",
                           formFields,
                           StatsUpload_callback);
    }