C# Class FistBump.Framework.Audio

FistBump.ca - Copyright (C)
Afficher le fichier Open project: fistbump/framework

Méthodes publiques

Méthode Description
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.

Method Details

Play() public static méthode

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
Résultat UnityEngine.AudioSource

Play() public static méthode

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
Résultat UnityEngine.AudioSource