示例#1
0
        public static AudioHandler PlaySoundAsQueueAtLocation(AudioData[] ads, Vector2 pos)
        {
            AudioHandler handler = InstantiateAudioObject(pos);

            handler.AddQueues(ads);
            handler.Play();
            return(handler);
        }
示例#2
0
        public static AudioHandler PlaySoundAsQueue(AudioData[] ads)
        {
            AudioHandler handler = InstantiateAudioObject();

            handler.AddQueues(ads);
            handler.Play();
            return(handler);
        }
示例#3
0
        public static AudioHandler PlaySoundAsQueueAtLocation(AudioAttribute[] atts, Vector2 pos)
        {
            AudioHandler handler = InstantiateAudioObject(pos);

            foreach (AudioAttribute a in atts)
            {
                TagHandle(a);
                AudioEventHandle(a, handler);
            }
            handler.AddQueues(atts);
            handler.Play();
            return(handler);
        }