Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
AudioManagerMobile.cs
Go to the documentation of this file.
1/* ​
2* Copyright (c) 2023 Go Touch VR SAS. All rights reserved. ​
3* ​
4*/
5
7using System.Collections.Generic;
8using UnityEngine;
9
11{
12 public class AudioManagerMobile : MonoBehaviour
13 {
14 [SerializeField]
15 private List<AudioHapticSource> audioHapticSources;
16
18 {
19 foreach (AudioHapticSource audioHapticSource in audioHapticSources)
20 {
21 if (audioHapticSource.audioSource.isPlaying)
22 {
23 audioHapticSource.audioSource.Stop();
24 break;
25 }
26 }
27 }
28 }
29}