Esempio n. 1
0
    void ReportData()
    {
        DisableProfiler();

        PerformanceTest.EndTest();
        var run = PerformanceTest.EndRun();

        LogResults(run);

        var filename   = "A2 " + m_LevelName + " " + m_ScenarioName + " " + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss");
        var outputFile = Application.dataPath + "/" + filename + ".json";

        GameDebug.Log("Reporting data to: " + outputFile);
        var json = JsonUtility.ToJson(run);

        File.WriteAllText(outputFile, json);
    }