public static void Play(this AudioObject ao, Transform targetToFollow, out MultiAudioSource audioSource) { audioSource = MultiAudioManager.PlayAudioObject(ao, targetToFollow); }
public static void Play(this AudioObject ao, int channel, Transform targetToFollow) { MultiAudioManager.PlayAudioObject(ao, channel, targetToFollow); }
// public static void Play(this AudioObject ao, Vector3 position, out MultiAudioSource audioSource) { audioSource = MultiAudioManager.PlayAudioObject(ao, position); }
public static void PlayIgnoringPause(this AudioObject ao, Vector3 position) { MultiAudioSource source = MultiAudioManager.PlayAudioObject(ao, position); source.IgnoreListenerPause = true; }
public static void PlayIgnoringPause(this AudioObject ao, Transform trf) { MultiAudioSource source = MultiAudioManager.PlayAudioObject(ao, trf); source.IgnoreListenerPause = true; }
public static void PlayWithDifferentPitch(this AudioObject ao, int channel, Transform targetToFollow, float pitchMultiplier) { MultiAudioManager.PlayAudioObject(ao, channel, targetToFollow).PitchOverride = ao.pitch * pitchMultiplier; }
public static void PlayWithDifferentPitch(this AudioObject ao, int channel, Vector3 position, float pitchMultiplier) { MultiAudioManager.PlayAudioObject(ao, channel, position).PitchOverride = ao.pitch * pitchMultiplier; }
public static void Play(this AudioObject ao, int channel, Vector3 position, MultiAudioManager.UpdateModes updateMode) { MultiAudioSource _source = MultiAudioManager.PlayAudioObject(ao, channel, position); _source.PlayUpdateMode = updateMode; }
public static void Play(this AudioObject ao, Transform targetToFollow, MultiAudioManager.UpdateModes updateMode) { MultiAudioSource _source = MultiAudioManager.PlayAudioObject(ao, targetToFollow); _source.PlayUpdateMode = updateMode; }
public static void Play(this AudioObject ao, int channel, Vector3 position) { MultiAudioManager.PlayAudioObject(ao, channel, position); }