示例#1
0
    public void SaveLoadout(Loadout loadout, string folder)
    {
        string json     = loadout.ToJson();
        string filePath = $"{FolderPath(folder)}/{loadout.loadoutName}.json";

        File.WriteAllText(filePath, json);
        Debug.Log($"Load saved: {filePath}");
    }