public void SaveBGM(AudioSource source) { if (source.isPlaying) { BGM = new ElementClass <float>(); BGM.Key = source.clip.name; BGM.Value = source.time; } }
public void SaveBGM(string name, float time) { if (name != null) { BGM = new ElementClass <float>(); BGM.Key = name; BGM.Value = time; } else { BGM = null; } }