Table of Contents

Class AmbienceHandler

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class AmbienceHandler : MonoBehaviour
Inheritance
AmbienceHandler
Inherited Members
Extension Methods

Constructors

AmbienceHandler()

public AmbienceHandler()

Fields

clips

public AudioClip[] clips

Field Value

AudioClip[]

currentTrigger

public AmbienceTrigger currentTrigger

Field Value

AmbienceTrigger

source

public AudioSource source

Field Value

AudioSource

targetClip

public AudioClip targetClip

Field Value

AudioClip

triggers

public AmbienceTrigger[] triggers

Field Value

AmbienceTrigger[]

Methods

CheckForChange()

public void CheckForChange()

GetRandomClip(AmbienceTrigger)

public AudioClip GetRandomClip(AmbienceTrigger targetTrigger)

Parameters

targetTrigger AmbienceTrigger

Returns

AudioClip

PlayClip(AudioClip)

public void PlayClip(AudioClip targetClip)

Parameters

targetClip AudioClip

PlayCurrentClip()

public void PlayCurrentClip()

Start()

public void Start()

TriggerChanged(AmbienceTrigger)

public void TriggerChanged(AmbienceTrigger bestTrigger)

Parameters

bestTrigger AmbienceTrigger

Update()

public void Update()