Sequine - Scripting API
Calcatz.CookieCutter.Audio.AudioPlayer Class Reference

An audio player in a form of MonoBehaviour component as a helper so that audio can be played through UnityEvent set from inspector. More...

Inheritance diagram for Calcatz.CookieCutter.Audio.AudioPlayer:

Public Member Functions

void PlaySound2D (AudioClip _clip)
 
void PlaySoundAtPosition (AudioClip _clip, Vector3 _position)
 
void PlaySFX2D (string _id)
 
void PlaySFXAtPosition (string _id, Vector3 _position)
 
void PlayME2D (string _id)
 
void PlayMEAtPosition (string _id, Vector3 _position)
 
void PlayBGM (string _id)
 
void PlayBGM (string _id, float _fadeDuration)
 
void PlayAmbience (string _id)
 
void PlayAmbience (string _id, float _fadeDuration)
 
void StopBGM ()
 
void StopAmbience ()
 

Public Attributes

bool restart = true
 

Detailed Description

An audio player in a form of MonoBehaviour component as a helper so that audio can be played through UnityEvent set from inspector.

Member Function Documentation

◆ PlayAmbience() [1/2]

void Calcatz.CookieCutter.Audio.AudioPlayer.PlayAmbience ( string  _id)

◆ PlayAmbience() [2/2]

void Calcatz.CookieCutter.Audio.AudioPlayer.PlayAmbience ( string  _id,
float  _fadeDuration 
)

◆ PlayBGM() [1/2]

void Calcatz.CookieCutter.Audio.AudioPlayer.PlayBGM ( string  _id)

◆ PlayBGM() [2/2]

void Calcatz.CookieCutter.Audio.AudioPlayer.PlayBGM ( string  _id,
float  _fadeDuration 
)

◆ PlayME2D()

void Calcatz.CookieCutter.Audio.AudioPlayer.PlayME2D ( string  _id)

◆ PlayMEAtPosition()

void Calcatz.CookieCutter.Audio.AudioPlayer.PlayMEAtPosition ( string  _id,
Vector3  _position 
)

◆ PlaySFX2D()

void Calcatz.CookieCutter.Audio.AudioPlayer.PlaySFX2D ( string  _id)

◆ PlaySFXAtPosition()

void Calcatz.CookieCutter.Audio.AudioPlayer.PlaySFXAtPosition ( string  _id,
Vector3  _position 
)

◆ PlaySound2D()

void Calcatz.CookieCutter.Audio.AudioPlayer.PlaySound2D ( AudioClip  _clip)

◆ PlaySoundAtPosition()

void Calcatz.CookieCutter.Audio.AudioPlayer.PlaySoundAtPosition ( AudioClip  _clip,
Vector3  _position 
)

◆ StopAmbience()

void Calcatz.CookieCutter.Audio.AudioPlayer.StopAmbience ( )

◆ StopBGM()

void Calcatz.CookieCutter.Audio.AudioPlayer.StopBGM ( )

Member Data Documentation

◆ restart

bool Calcatz.CookieCutter.Audio.AudioPlayer.restart = true