public string GetLogFilePath()
{
string path = Application.dataPath;
#if !UNITY_EDITOR
path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + "/" + Application.companyName + "/" + Application.productName + "/logs";
#else
DirectoryInfo parentDir = Directory.GetParent(Application.dataPath);
path = parentDir.FullName + "/logs";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
#endif
return path;
}