13 lines
344 B
C#
13 lines
344 B
C#
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.EventSystems;
|
||
|
|
|
||
|
|
public class PlayClickSound_Only : MonoBehaviour, IPointerUpHandler
|
||
|
|
{
|
||
|
|
public eSound m_Sound = eSound.s001_ButtonClick;
|
||
|
|
|
||
|
|
public void OnPointerUp(PointerEventData eventData)
|
||
|
|
{
|
||
|
|
if (!DSUtil.CheckNull(SoundInfo.Ins))
|
||
|
|
SoundInfo.Ins.Play_OneShot(m_Sound, 1f);
|
||
|
|
}
|
||
|
|
}
|