Skip to content

Commit

Permalink
总是将配置写回
Browse files Browse the repository at this point in the history
  • Loading branch information
peng1999 committed Jul 23, 2019
1 parent 7da61dc commit 29a9af9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Assets/Scripts/General/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Simuro5v5
{

// 平台运行时的配置
/// 平台运行时的配置
class Configuration
{
public class StrategyConfig
Expand Down Expand Up @@ -102,10 +102,8 @@ public static void ReadFromFileOrCreate(string fileName)
string json = File.ReadAllText(fileName);
JsonConvert.DeserializeObject<Configuration>(json);
}
else
{
SaveToFile(fileName);
}
// 总是将配置写回
SaveToFile(fileName);
}

public static void SaveToFile(string fileName)
Expand Down

0 comments on commit 29a9af9

Please sign in to comment.