public static void Init()
        {
            MessageStringData data     = Resources.Load <MessageStringData>("GameRunSettingData");
            string            ip       = data.GetValue("ftpServerIP");
            string            userName = data.GetValue("ftpUserID");
            string            pw       = data.GetValue("ftpPassword");

            ftp = new FTPTool(ip, userName, pw);

            localDirPath = Application.dataPath.Replace("Assets", "TempUpdateAB");

            if (Directory.Exists(localDirPath))
            {
                Directory.Delete(localDirPath, true);
            }
        }
Ejemplo n.º 2
0
        public static string GetPath(string dataName, string pathName)
        {
            MessageStringData ms   = GetMessageStringData();
            string            path = ms.GetValue(pathName);

            path = path + "/" + dataName + ".txt";
            path = PathUtils.GetSpecialPath(path, SpecialPathType.Resources);
            Debug.Log("Path:" + path);

            return(path);
        }