Files
FueraDeEscala/Assets/Game Kit Controller/Integrations/External Audio Systems/Wwise/Scripts/WwiseExternalAudioPlayer.cs
Robii Aragon fd87a6ffd5 add ckg
plantilla base para movimiento básico
2026-02-05 05:07:55 -08:00

35 lines
864 B
C#

#if GAME_KIT_CONTROLLER_USE_WWISE
using UnityEngine;
namespace GameKitController.Audio
{
public class WwiseExternalAudioPlayer : MonoBehaviour, IExternalAudioPlayer
{
public void Play(AudioElement audioElement, GameObject gameObj)
{
AkSoundEngine.PostEvent(audioElement.audioEventName, gameObj);
}
public void PlayOneShot(AudioElement audioElement, GameObject gameObj, float volumeScale = 1.0f)
{
AkSoundEngine.PostEvent(audioElement.audioEventName, gameObj);
}
public void Stop(AudioElement audioElement, GameObject gameObj)
{
AkSoundEngine.StopAll(gameObj);
}
public void Pause(AudioElement audioElement, GameObject gameObj)
{
AkSoundEngine.StopAll(gameObj);
}
public void UnPause(AudioElement audioElement, GameObject gameObj)
{
AkSoundEngine.PostEvent(audioElement.audioEventName, gameObj);
}
}
}
#endif