Exemplo n.º 1
0
        private static string GetLuaDistributePath(string flag)
        {
#if UNITY_EDITOR
            return(AppDataPath + "/CapstonesScripts/distribute/" + flag + "/?.lua;" + AppUpdatePath + "/distribute/" + flag + "/?.lua;");
#else
            if (AppStreamingAssetsPath.Contains("://"))
            {
                return(AppUpdatePath + "/distribute/" + flag + "/?.lua;");
            }
            else
            {
                return(AppUpdatePath + "/spt/distribute/" + flag + "/?.lua;" + AppStreamingAssetsPath + "/spt/distribute/" + flag + "/?.lua;");
            }
#endif
        }
Exemplo n.º 2
0
        private static string GetLuaPackagePath()
        {
#if UNITY_EDITOR
            return(AppDataPath + "/CapstonesScripts/spt/?.lua;" + AppUpdatePath + "/spt/?.lua;");
#else
            if (AppStreamingAssetsPath.Contains("://"))
            {
                return(AppUpdatePath + "/spt/?.lua;");
            }
            else
            {
                return(AppUpdatePath + "/spt/?.lua;" + AppStreamingAssetsPath + "/spt/?.lua;");
            }
#endif
        }