Esempio n. 1
0
        public static MusicPlayConfig Get(float time)
        {
            MusicPlayConfig config = new MusicPlayConfig();

            config.FadeInTime   = time;
            config.FadeOutTime  = time;
            config.SkipLoadWait = false;
            return(config);
        }
Esempio n. 2
0
        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);
        }