C# Class LoopingAudioSource, planet-survival

Provides an easy wrapper to looping audio sources with nice transitions for volume when starting and stopping
Datei anzeigen Open project: gjrfytn/planet-survival Class Usage Examples

Public Methods

Method Description
LoopingAudioSource ( MonoBehaviour script, AudioClip clip ) : System
Play ( float targetVolume ) : void
Stop ( ) : void
Update ( ) : void

Method Details

LoopingAudioSource() public method

public LoopingAudioSource ( MonoBehaviour script, AudioClip clip ) : System
script MonoBehaviour
clip UnityEngine.AudioClip
return System

Play() public method

public Play ( float targetVolume ) : void
targetVolume float
return void

Stop() public method

public Stop ( ) : void
return void

Update() public method

public Update ( ) : void
return void