set log file path

This commit is contained in:
Le Duc Anh
2025-10-07 17:20:08 +07:00
parent 4bd8c37e6b
commit af784bf761
2 changed files with 3 additions and 0 deletions
Binary file not shown.
@@ -7,6 +7,7 @@ using ModelRenderer.Scripts.Common;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
@@ -97,6 +98,8 @@ namespace BrewMonster.Network
BaseSecurity.Initizalize();
ProtocolFactory.RegisterAllProtocols();
_gameSession = new GameSession();
var path = Application.dataPath.Substring(0, Application.dataPath.LastIndexOf("Assets"));
_gameSession.SetLogPath(Path.Combine(path, "Logs", "GameSession.log"));
_isInitialized = true;
DontDestroyOnLoad(gameObject);