|
|
|
|
|
|
public void SerializeToFile() |
|
|
|
{ |
|
|
|
Directory.CreateDirectory(Application.dataPath + "/StreamingAssets/"); |
|
|
|
using var writer = new StreamWriter(defaultConfigFilePath, false); |
|
|
|
writer.Write(SerializeToJson()); |
|
|
|
using (var writer = new StreamWriter(defaultConfigFilePath, false)) |
|
|
|
{ |
|
|
|
writer.Write(SerializeToJson()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|