Beispiel #1
0
 public void LoadFromPath(string path)
 {
     if (File.Exists(path))
     {
         Load(StdioUtil.ReadTextFile(path));
     }
 }
Beispiel #2
0
 public static void Test2()
 {
     int[][] grids =
         new AStarMapPath(StdioUtil.ReadTextFile("E:/WorkSpace/Unity/Test/Assets/tile/tileSet/fff.txt"))
         .grids;
     LogCat.log(grids);
 }
Beispiel #3
0
 public static void Build()
 {
     AssetPathRefManager.instance.Save();
     StdioUtil.WriteTextFile(BuildConst.Output_Path + AssetPathRefConst.SaveFileName,
                             StdioUtil.ReadTextFile(AssetPathRefConst.SaveFilePath));
     AssetDatabase.Refresh();
 }
Beispiel #4
0
        public static void Build()
        {
            string filePath = BuildConst.ResVersionFilePath.WithRootPath(FilePathConst.ProjectPath);

            StdioUtil.CreateFileIfNotExist(filePath);
            string resVersion = StdioUtil.ReadTextFile(filePath);

            resVersion = resVersion.IsNullOrWhiteSpace() ? BuildConst.ResVersionDefault : IncreaseResSubVersion(resVersion);
            StdioUtil.WriteTextFile(filePath, resVersion);
            StdioUtil.WriteTextFile(BuildConst.Output_Path + BuildConst.ResVersionFileName, resVersion);
            AssetDatabase.Refresh();
        }