C# Класс FistBump.Framework.Audio

FistBump.ca - Copyright (C)
Показать файл Открыть проект

Открытые методы

Метод Описание
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