C# 클래스 Sol.SoundManager

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: Stumpstump/RoverGame

공개 프로퍼티들

프로퍼티 타입 설명
collections List
effectsGroup UnityEngine.Audio.AudioMixerGroup
masterMixer UnityEngine.Audio.AudioMixer
musicGroup UnityEngine.Audio.AudioMixerGroup
soundSourcePrefab SoundSource
sources List
voicesGroup UnityEngine.Audio.AudioMixerGroup

공개 메소드들

메소드 설명
Find ( AudioClip audioClip ) : Sound

Return sound of given audio clip

Find ( int soundId ) : Sound

Return sound of given ID

Find ( string soundName ) : Sound

Return sound of given sound name

IsPlaying ( Sound sound ) : bool

Return whether or not sound source of given sound is playing

Play ( AudioClip audioClip, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource

Play sound source of given audio clip

Play ( Sound sound, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource

Play sound source of given sound

Play ( int soundId, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource

Play sound source of given ID

Play ( string soundName, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource

Play sound source of given sound name

Reset ( ) : void

clear out sound sources from the obect pool

Stop ( Sound sound ) : void

Stop playing sound of given sound

Stop ( SoundSource soundSource ) : void

Stop sound of given sound source

Stop ( int soundId ) : void

Stop sound of given ID

비공개 메소드들

메소드 설명
GetSoundSource ( Sound sound, Transform parent, Vector3 position ) : SoundSource

Get sound source from collections

Initialize ( Sound sound, float fadeTime ) : void

Initialize sound

OnSoundSourceStop ( SoundSource source ) : void

Cleanup sound source

메소드 상세

Find() 공개 메소드

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

Find() 공개 메소드

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

Find() 공개 메소드

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

IsPlaying() 공개 메소드

Return whether or not sound source of given sound is playing
public IsPlaying ( Sound sound ) : bool
sound Sound
리턴 bool

Play() 공개 메소드

Play sound source of given audio clip
public Play ( AudioClip audioClip, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource
audioClip UnityEngine.AudioClip
fadeTime float
parent UnityEngine.Transform
position UnityEngine.Vector3
리턴 SoundSource

Play() 공개 메소드

Play sound source of given sound
public Play ( Sound sound, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource
sound Sound
fadeTime float
parent UnityEngine.Transform
position UnityEngine.Vector3
리턴 SoundSource

Play() 공개 메소드

Play sound source of given ID
public Play ( int soundId, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource
soundId int
fadeTime float
parent UnityEngine.Transform
position UnityEngine.Vector3
리턴 SoundSource

Play() 공개 메소드

Play sound source of given sound name
public Play ( string soundName, float fadeTime = 0f, Transform parent = null, Vector3 position = default(Vector3) ) : SoundSource
soundName string
fadeTime float
parent UnityEngine.Transform
position UnityEngine.Vector3
리턴 SoundSource

Reset() 공개 메소드

clear out sound sources from the obect pool
public Reset ( ) : void
리턴 void

Stop() 공개 메소드

Stop playing sound of given sound
public Stop ( Sound sound ) : void
sound Sound
리턴 void

Stop() 공개 메소드

Stop sound of given sound source
public Stop ( SoundSource soundSource ) : void
soundSource SoundSource
리턴 void

Stop() 공개 메소드

Stop sound of given ID
public Stop ( int soundId ) : void
soundId int
리턴 void

프로퍼티 상세

collections 공개적으로 프로퍼티

public List collections
리턴 List

effectsGroup 공개적으로 프로퍼티

public AudioMixerGroup,UnityEngine.Audio effectsGroup
리턴 UnityEngine.Audio.AudioMixerGroup

masterMixer 공개적으로 프로퍼티

public AudioMixer,UnityEngine.Audio masterMixer
리턴 UnityEngine.Audio.AudioMixer

musicGroup 공개적으로 프로퍼티

public AudioMixerGroup,UnityEngine.Audio musicGroup
리턴 UnityEngine.Audio.AudioMixerGroup

soundSourcePrefab 공개적으로 프로퍼티

public SoundSource,Sol soundSourcePrefab
리턴 SoundSource

sources 공개적으로 프로퍼티

public List sources
리턴 List

voicesGroup 공개적으로 프로퍼티

public AudioMixerGroup,UnityEngine.Audio voicesGroup
리턴 UnityEngine.Audio.AudioMixerGroup