C# 클래스 FadingAudioSource, kaijurising

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

공개 프로퍼티들

프로퍼티 타입 설명
FadeOutThreshold float
FadeSpeed float

공개 메소드들

메소드 설명
Fade ( AudioClip clip, float volume, bool loop ) : void

If the audio source is enabled and playing, fades out the current clip and fades in the specified one, after. If the audio source is enabled and not playing, fades in the specified clip immediately. If the audio source is not enalbed, fades in the specified clip as soon as it gets enabled.

Play ( ) : void

Continues fading in the current audio clip.

Stop ( ) : void

Stop playing the current audio clip immediately.

비공개 메소드들

메소드 설명
Awake ( ) : void
FadeToNextClip ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
Update ( ) : void

메소드 상세

Fade() 공개 메소드

If the audio source is enabled and playing, fades out the current clip and fades in the specified one, after. If the audio source is enabled and not playing, fades in the specified clip immediately. If the audio source is not enalbed, fades in the specified clip as soon as it gets enabled.
public Fade ( AudioClip clip, float volume, bool loop ) : void
clip UnityEngine.AudioClip Clip to fade in.
volume float Volume to fade to.
loop bool Whether to loop the new clip, or not.
리턴 void

Play() 공개 메소드

Continues fading in the current audio clip.
public Play ( ) : void
리턴 void

Stop() 공개 메소드

Stop playing the current audio clip immediately.
public Stop ( ) : void
리턴 void

프로퍼티 상세

FadeOutThreshold 공개적으로 프로퍼티

Volume to end the previous clip at.
public float FadeOutThreshold
리턴 float

FadeSpeed 공개적으로 프로퍼티

Volume change per second when fading.
public float FadeSpeed
리턴 float