diff --git a/Assets/LuaFramework/Scripts/Utility/Util.cs b/Assets/LuaFramework/Scripts/Utility/Util.cs index 9424d971e..536972e96 100644 --- a/Assets/LuaFramework/Scripts/Utility/Util.cs +++ b/Assets/LuaFramework/Scripts/Utility/Util.cs @@ -208,10 +208,9 @@ public static string DataPath { public static string GetRelativePath() { if (Application.isEditor) return "file://" + System.Environment.CurrentDirectory.Replace("\\", "/") + "/Assets/" + AppConst.AssetDir + "/"; - else if (Application.isMobilePlatform || Application.isConsolePlatform) + else return "file:///" + DataPath; - else // For standalone player. - return "file://" + Application.streamingAssetsPath + "/"; + } /// @@ -330,4 +329,4 @@ public static bool CheckEnvironment() { return true; } } -} \ No newline at end of file +}