2025-09-10 00:11:14 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
|
|
|
|
|
|
public class PlayClickSound_Only : MonoBehaviour, IPointerUpHandler
|
|
|
|
|
{
|
2025-09-19 19:45:18 +00:00
|
|
|
public eSound m_Sound = eSound.s001_ButtonClick;
|
|
|
|
|
|
2025-09-10 00:11:14 +00:00
|
|
|
public void OnPointerUp(PointerEventData eventData)
|
|
|
|
|
{
|
|
|
|
|
if (!DSUtil.CheckNull(SoundInfo.Ins))
|
2025-09-19 19:45:18 +00:00
|
|
|
SoundInfo.Ins.Play_OneShot(m_Sound, 1f);
|
2025-09-10 00:11:14 +00:00
|
|
|
}
|
|
|
|
|
}
|