mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
19 lines
378 B
C#
19 lines
378 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class MonoButtonWwiseEvent : MonoBehaviour, IPointerClickHandler, IEventSystemHandler
|
|
{
|
|
public string eventName;
|
|
|
|
public void OnPointerClick(PointerEventData eventData)
|
|
{
|
|
if (!string.IsNullOrEmpty(eventName))
|
|
{
|
|
Singleton<WwiseAudioManager>.Instance.Post(eventName);
|
|
}
|
|
}
|
|
}
|
|
}
|