Beispiel #1
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);
        }
        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);
            }
        }
        void Init()
        {
            dataNameDic.Clear();

            ms           = LogicSystemEditorTools.GetMessageStringData();
            ms.hideFlags = HideFlags.NotEditable;
            for (int i = 0; i < ms.mesList.Count; i++)
            {
                MessageString m       = ms.mesList[i];
                string        pathDic = PathUtils.GetSpecialPath(m.value, SpecialPathType.Resources);
                if (!Directory.Exists(pathDic))
                {
                    Directory.CreateDirectory(pathDic);
                    AssetDatabase.Refresh();
                }
                string[] temp = PathUtils.GetDirectoryFileNames(pathDic, new string[] { ".txt" });
                Debug.Log("Name:" + m.name);
                dataNameDic.Add(m.name, new List <string>(temp));
            }
        }
 void Init()
 {
     msData = ScriptableObjectUtils.LoadCreateScriptableObject <MessageStringData>(LogicSystemConstData.LogicObjectBackUpData);
 }