public static AudioHandler PlaySoundAsQueueAtLocation(AudioData[] ads, Vector2 pos) { AudioHandler handler = InstantiateAudioObject(pos); handler.AddQueues(ads); handler.Play(); return(handler); }
public static AudioHandler PlaySoundAsQueue(AudioData[] ads) { AudioHandler handler = InstantiateAudioObject(); handler.AddQueues(ads); handler.Play(); return(handler); }
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); }