summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Common/CommonFunction.cs
blob: 3ce26634efb41c7ef7fc026725a072089ec0ae45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    }

}