98 if (Marshal.PtrToStringAnsi(Ailia.ailiaGetVersion()).Contains(
"perpetual_license")){
102 #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
103 string currentDirectory = Environment.CurrentDirectory;
104 string licFolder = currentDirectory;
106 #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
107 string homePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
108 string licFolder = Path.Combine(homePath,
"Library/SHALO/");
110 #if UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
111 string homePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
112 string licFolder = Path.Combine(homePath,
".shalo/");
118 #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
119 string licFile = Path.Combine(licFolder,
"AILIA.lic");
121 string userData = CheckLicense(licFile);
122 if (userData ==
null)
124 Debug.Log(
"Downloading license file for ailia SDK.");
125 DirectoryInfo di = Directory.CreateDirectory(licFolder);
126 DownloadLicense(licFile);
127 userData = CheckLicense(licFile);
130 if (userData ==
null){
131 Debug.Log(
"Download license file failed.");
135 if (userData.Contains(
"trial version"))