C# Class SoundCollection, RoverGame

Inheritance: MonoBehaviour
Mostra file Open project: Stumpstump/RoverGame Class Usage Examples

Public Properties

Property Type Description
soundType SoundType,
sounds List

Public Methods

Method Description
Add ( ) : void

Add new empty sound to list of cached sounds

Add ( Sound, sound ) : void

Add sound to list of cached sounds

Find ( AudioClip audioClip ) : Sound,

Return sound of given audioclip

Find ( int id ) : Sound,

Return sound of given ID

Find ( string name ) : Sound,

Return sound of given name

GetSoundIds ( SoundType, type = SoundType.Any ) : List

Return list of all sound IDs

GetSoundNames ( SoundType, type = SoundType.Any ) : List

Return list of all sound names

Remove ( Sound, sound ) : void

Remove sound from list of cached sounds

Reset ( Sound, sound ) : void

Reset sound

Sort ( ) : void

Sort sounds by name

Private Methods

Method Description
Clear ( ) : void

Method Details

Add() public method

Add new empty sound to list of cached sounds
public Add ( ) : void
return void

Add() public method

Add sound to list of cached sounds
public Add ( Sound, sound ) : void
sound Sound,
return void

Find() public method

Return sound of given audioclip
public Find ( AudioClip audioClip ) : Sound,
audioClip UnityEngine.AudioClip
return Sound,

Find() public method

Return sound of given ID
public Find ( int id ) : Sound,
id int
return Sound,

Find() public method

Return sound of given name
public Find ( string name ) : Sound,
name string
return Sound,

GetSoundIds() public method

Return list of all sound IDs
public GetSoundIds ( SoundType, type = SoundType.Any ) : List
type SoundType,
return List

GetSoundNames() public method

Return list of all sound names
public GetSoundNames ( SoundType, type = SoundType.Any ) : List
type SoundType,
return List

Remove() public method

Remove sound from list of cached sounds
public Remove ( Sound, sound ) : void
sound Sound,
return void

Reset() public method

Reset sound
public Reset ( Sound, sound ) : void
sound Sound,
return void

Sort() public method

Sort sounds by name
public Sort ( ) : void
return void

Property Details

soundType public_oe property

public SoundType, soundType
return SoundType,

sounds public_oe property

public List sounds
return List