DoopelPonger
Public Member Functions | Public Attributes | List of all members
RandomClipAudioSelector Class Reference

Selects a random sound effect from the predefined list and plays it. More...

Inheritance diagram for RandomClipAudioSelector:
Inheritance graph
[legend]
Collaboration diagram for RandomClipAudioSelector:
Collaboration graph
[legend]

Public Member Functions

override void PlayClip (float volume)
 Plays a random clip at thhe specified volume. More...
 

Public Attributes

PlayOnceAudio [] playOnceAudio
 

Additional Inherited Members

- Protected Member Functions inherited from AudioSelector
PlayOnceAudio InstantiatePlayOnceAudio (PlayOnceAudio prefab)
 

Detailed Description

Selects a random sound effect from the predefined list and plays it.

If the sound effect already has several variations, then they will be picked at random.

Member Function Documentation

◆ PlayClip()

override void RandomClipAudioSelector.PlayClip ( float  volume)
virtual

Plays a random clip at thhe specified volume.

Parameters
volumeVolume to set the clip at.

Implements AudioSelector.

Member Data Documentation

◆ playOnceAudio

PlayOnceAudio [] RandomClipAudioSelector.playOnceAudio

A list of sound effects to choose from when playing a sound.


The documentation for this class was generated from the following file: