Пример #1
0
 /// <summary>
 /// Called when the game session is finished.
 /// e.g. All session trials have been completed.
 /// </summary>
 protected virtual void FinishedSession()
 {
     GUILog.SaveLog();
     sessionData.completed = true;
     XMLUtil.WriteSessionLog(ref sessionData);
     OnFinished();
 }
Пример #2
0
    void OnApplicationQuit()
    {
        if (activeGame == null)
        {
            return;
        }
        SessionData sData = activeGame.SessionData;

        // Write the log file for any sessions that haven't been completed but have started.
        if (!sData.outputWritten && sData.SessionStarted)
        {
            XMLUtil.WriteSessionLog(ref sData);
        }
        GUILog.SaveLog();
    }