public void LoadFromPath(string path) { if (File.Exists(path)) { Load(StdioUtil.ReadTextFile(path)); } }
public static void Test2() { int[][] grids = new AStarMapPath(StdioUtil.ReadTextFile("E:/WorkSpace/Unity/Test/Assets/tile/tileSet/fff.txt")) .grids; LogCat.log(grids); }
public static void Build() { AssetPathRefManager.instance.Save(); StdioUtil.WriteTextFile(BuildConst.Output_Path + AssetPathRefConst.SaveFileName, StdioUtil.ReadTextFile(AssetPathRefConst.SaveFilePath)); AssetDatabase.Refresh(); }
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(); }