Added card VO
This commit is contained in:
@@ -38,6 +38,7 @@ public class AudioManager : ManagedBehaviour, IPausable
|
||||
|
||||
public AppleAudioSource uiAudioSource;
|
||||
public AppleAudioSource uiMusicSource;
|
||||
public AppleAudioSource uiVOSource;
|
||||
// Dictionary to track addressable handles by AudioManager
|
||||
private Dictionary<AppleAudioSource, AsyncOperationHandle<AudioResource>> _addressableHandles
|
||||
= new Dictionary<AppleAudioSource, AsyncOperationHandle<AudioResource>>();
|
||||
@@ -344,4 +345,10 @@ public class AudioManager : ManagedBehaviour, IPausable
|
||||
// Clean up any remaining addressable handles when disabled
|
||||
ReleaseAllHandles();
|
||||
}
|
||||
|
||||
public void PlayCardVO(AudioResource clipToPlay)
|
||||
{
|
||||
uiVOSource.audioSource.resource = clipToPlay;
|
||||
uiVOSource.audioSource.Play();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user