C# Class SoundController.SoundManager

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: JordanStone/ExorcistForHire Class Usage Examples

Public Properties

Property Type Description
ambience UnityEngine.AudioClip[]
ambienceFadeTime float
ambienceSound UnityEngine.AudioSource
gunshots UnityEngine.AudioClip[]
sfx UnityEngine.AudioClip[]
walks UnityEngine.AudioClip[]

Public Methods

Method Description
Awake ( ) : void
ChangeAmbienceVolume ( ) : void
ChangeMasterVolume ( ) : void
ChangeSFXVolume ( ) : void
ContinueAllAudio ( ) : void
GetAmbienceSound ( ) : AudioClip
GetAmbientSound ( int index ) : AudioClip
GetGunSound ( int index ) : AudioClip
GetSFXSound ( int index ) : AudioClip
GetWalkSound ( int index ) : AudioClip
PauseAllButAmbience ( ) : void
SetAmbience ( AudioClip amb ) : void
Start ( ) : void
StopAllAudio ( ) : void

Private Methods

Method Description
ChangeMasterVolume ( float highVolume ) : void
CheckSoundsHigh ( ) : void
NullTest ( AudioClip TestThis ) : AudioClip
NullTest ( AudioClip TestArray, int i ) : AudioClip
WaitTime ( float time, AudioClip amb ) : IEnumerator

Method Details

Awake() public method

public Awake ( ) : void
return void

ChangeAmbienceVolume() public method

public ChangeAmbienceVolume ( ) : void
return void

ChangeMasterVolume() public method

public ChangeMasterVolume ( ) : void
return void

ChangeSFXVolume() public method

public ChangeSFXVolume ( ) : void
return void

ContinueAllAudio() public method

public ContinueAllAudio ( ) : void
return void

GetAmbienceSound() public method

public GetAmbienceSound ( ) : AudioClip
return UnityEngine.AudioClip

GetAmbientSound() public method

public GetAmbientSound ( int index ) : AudioClip
index int
return UnityEngine.AudioClip

GetGunSound() public method

public GetGunSound ( int index ) : AudioClip
index int
return UnityEngine.AudioClip

GetSFXSound() public method

public GetSFXSound ( int index ) : AudioClip
index int
return UnityEngine.AudioClip

GetWalkSound() public method

public GetWalkSound ( int index ) : AudioClip
index int
return UnityEngine.AudioClip

PauseAllButAmbience() public method

public PauseAllButAmbience ( ) : void
return void

SetAmbience() public method

public SetAmbience ( AudioClip amb ) : void
amb UnityEngine.AudioClip
return void

Start() public method

public Start ( ) : void
return void

StopAllAudio() public method

public StopAllAudio ( ) : void
return void

Property Details

ambience public_oe property

public AudioClip[],UnityEngine ambience
return UnityEngine.AudioClip[]

ambienceFadeTime public_oe property

public float ambienceFadeTime
return float

ambienceSound public_oe property

public AudioSource,UnityEngine ambienceSound
return UnityEngine.AudioSource

gunshots public_oe property

public AudioClip[],UnityEngine gunshots
return UnityEngine.AudioClip[]

sfx public_oe property

public AudioClip[],UnityEngine sfx
return UnityEngine.AudioClip[]

walks public_oe property

public AudioClip[],UnityEngine walks
return UnityEngine.AudioClip[]