set log file path
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user