15 string timestamp = System.DateTime.Now.ToString(
"yyyy-MM-dd_HH-mm-ss");
16 string fileName = $
"Playtest_{timestamp}.txt";
19 string folderPath = Path.Combine(Application.dataPath,
"PlaytestLogs");
20 Directory.CreateDirectory(folderPath);
22 string filePath = Path.Combine(folderPath, fileName);
24 using (StreamWriter writer =
new StreamWriter(filePath,
false)) {
25 writer.WriteLine(
"========== Playtest Session ==========");
26 writer.WriteLine(
"Timestamp: " + System.DateTime.Now.ToString(
"yyyy-MM-dd HH:mm:ss"));
27 writer.WriteLine(
"Conversation History:");
29 writer.WriteLine(
"======================================");
32 Debug.Log(
"Conversation saved to: " + filePath);
TextMeshProUGUI conversationText