/// <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(); }
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(); }