public static MusicPlayConfig Get(float time) { MusicPlayConfig config = new MusicPlayConfig(); config.FadeInTime = time; config.FadeOutTime = time; config.SkipLoadWait = false; return(config); }
internal void Play(object entry, MusicRequest info, AudioMixerGroup group, MusicPlayConfig config) { if (entry != m_CurrentEntry) { return; } var obj = Borrow(); m_Playing.Add(obj); //Configのgroupが優先される obj.PlayRequest(info, entry, config.FadeInTime, config.Group ?? group); }