3 namespace HKI.Core.Audio
39 [SerializeField]
float DelayPlayInSeconds = 0.0f;
46 if (DelayPlayInSeconds > 0)
47 Invoke(
"Play", DelayPlayInSeconds);
58 if (DelayPlayInSeconds > 0)
59 Invoke(
"Play", DelayPlayInSeconds);
70 if (DelayPlayInSeconds > 0)
71 Invoke(
"Play", DelayPlayInSeconds);
82 if (DelayPlayInSeconds > 0)
83 Invoke(
"Play", DelayPlayInSeconds);
92 if(AudioSystem != null)
94 switch(AudioPlayerType)
void PlaySoundClipWithVoicesAudioPlayer(SoundClip soundClip)
The AudioSystem is responsble of the creation and access of the general purpose AudioPlayers.
This MonoBehaviour allows playing of a SoundClip on one of the general purpose AudioPlayers.
void PlaySoundClipWithFxAudioPlayer(SoundClip soundClip)
void PlaySoundClipWithAmbientAudioPlayer(SoundClip soundClip)
void PlaySoundClipWithUiFxAudioPlayer(SoundClip soundClip)
This is a container ScriptableObject that holds all data required to play a AudioClip.
void PlaySoundClipWithMusicAudioPlayer(SoundClip soundclip)