mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 00:14:37 +01:00
15 lines
353 B
C#
15 lines
353 B
C#
using UnityEngine;
|
|
|
|
[AddComponentMenu("Wwise/AkSwitch")]
|
|
public class AkSwitch : AkUnityEventHandler
|
|
{
|
|
public int groupID;
|
|
|
|
public int valueID;
|
|
|
|
public override void HandleEvent(GameObject in_gameObject)
|
|
{
|
|
AkSoundEngine.SetSwitch((uint)groupID, (uint)valueID, (!useOtherObject || !(in_gameObject != null)) ? base.gameObject : in_gameObject);
|
|
}
|
|
}
|