diff options
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Common/CommonFunction.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Common/CommonFunction.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Common/CommonFunction.cs b/WorldlineKeepers/Assets/Scripts/Common/CommonFunction.cs new file mode 100644 index 0000000..3ce2663 --- /dev/null +++ b/WorldlineKeepers/Assets/Scripts/Common/CommonFunction.cs @@ -0,0 +1,19 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO; +using UnityEngine; + +public static class CommonFunction +{ + + public static void WriteFile(string content, string file) + { + if(File.Exists(file)) + { + File.Delete(file); + } + + File.WriteAllText(file, content); + } + +} |