static string GetFilePath(InteractionHostType type, Guid guid, DialogueSegment2D interaction) { return GetDirectoryPath(GetDirectory(type), guid) + "/" + interaction.Guid.ToString() + ".json"; }
public static void Save(InteractionHostType type, Guid guid, DialogueSegment2D interaction) { var s = JsonConvert.SerializeObject(interaction, Formatting.Indented, settings); Serializer.SaveToFile(GetFilePath(type, guid, interaction), s); }