AudioAction - CodingDino/Dino-Unity-Toolkit GitHub Wiki

The AudioAction component controls the audio playback on an attached AudioSource.

This is an Action component, and therefore must be triggered by a separate Activator component. Actions, Activators, and Data make up the core system for the Dino Unity Toolkit.

Image: AudioAction attached to a player, used to play a jump sound effect.

Actions

This component has several Action functions that can be triggered by Activators.

ActionPlayAudio()

This action plays the clip in the attached AudioSource.

ActionStopAudio()

This action stops playback for the attached AudioSource. When it is played again, it will start from the beginning.

ActionPauseAudio()

This action pauses playback for the attached AudioSource. When it is played again, it will pick up where it left off.

ActionPlayOneShot()

This action plays the specified clip using the attached AudioSource. If stopped and played again, the original clip attached to the AudioSource will be used instead.

Parameter: Description:
Clip To Play The audio clip that will be played.