C# 클래스 SoundCollection, RoverGame

상속: MonoBehaviour
파일 보기 프로젝트 열기: Stumpstump/RoverGame 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
soundType SoundType,
sounds List

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Clear ( ) : void

메소드 상세

Add() 공개 메소드

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

Add() 공개 메소드

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

Find() 공개 메소드

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

Find() 공개 메소드

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

Find() 공개 메소드

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

GetSoundIds() 공개 메소드

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

GetSoundNames() 공개 메소드

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

Remove() 공개 메소드

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

Reset() 공개 메소드

Reset sound
public Reset ( Sound, sound ) : void
sound Sound,
리턴 void

Sort() 공개 메소드

Sort sounds by name
public Sort ( ) : void
리턴 void

프로퍼티 상세

soundType 공개적으로 프로퍼티

public SoundType, soundType
리턴 SoundType,

sounds 공개적으로 프로퍼티

public List sounds
리턴 List