add ckg
plantilla base para movimiento básico
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#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
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 50326d7b17c34c2d9817afc1c144543a
|
||||
timeCreated: 1667565343
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
assetPath: Assets/Game Kit Controller/Integrations/External Audio Systems/Wwise/Scripts/WwiseExternalAudioPlayer.cs
|
||||
uploadId: 814740
|
||||
Reference in New Issue
Block a user