public void SaveToJson(DiceType diceType) { timeline.ApplyChanges(); string jsonText = JsonUtility.ToJson(animationSet, true); string path = GetJsonFilePathname(diceType); File.WriteAllText(path, jsonText); Debug.Log($"Saved {diceType} animations to {path}"); }