C# 클래스 FistBump.Framework.Audio

FistBump.ca - Copyright (C)
파일 보기 프로젝트 열기: fistbump/framework

공개 메소드들

메소드 설명
Play ( AudioClip clip, Transform emitter, float volume = 1.0f, float pitch = 1.0f ) : AudioSource

Plays a sound by creating an empty game object with an AudioSource and attaching it to the given transform (so it moves with the transform). Destroys it after it finished playing.

Play ( AudioClip clip, Vector3 point, float volume = 1.0f, float pitch = 1.0f ) : AudioSource

Plays a sound at the given point in space by creating an empty game object with an AudioSource in that place and destroys it after it finished playing.

메소드 상세

Play() 공개 정적인 메소드

Plays a sound by creating an empty game object with an AudioSource and attaching it to the given transform (so it moves with the transform). Destroys it after it finished playing.
public static Play ( AudioClip clip, Transform emitter, float volume = 1.0f, float pitch = 1.0f ) : AudioSource
clip UnityEngine.AudioClip
emitter UnityEngine.Transform
volume float
pitch float
리턴 UnityEngine.AudioSource

Play() 공개 정적인 메소드

Plays a sound at the given point in space by creating an empty game object with an AudioSource in that place and destroys it after it finished playing.
public static Play ( AudioClip clip, Vector3 point, float volume = 1.0f, float pitch = 1.0f ) : AudioSource
clip UnityEngine.AudioClip
point UnityEngine.Vector3
volume float
pitch float
리턴 UnityEngine.AudioSource