OneShotOneKill/Assets/Script/UGUI/Util/PlayClickSound_Only.cs

11 lines
302 B
C#
Raw Permalink Normal View History

2026-01-07 21:27:42 +00:00
using UnityEngine;
using UnityEngine.EventSystems;
public class PlayClickSound_Only : MonoBehaviour, IPointerUpHandler
{
public void OnPointerUp(PointerEventData eventData)
{
if (!DSUtil.CheckNull(SoundInfo.Ins))
SoundInfo.Ins.Play_OneShot(eSound.s003_Click, 0.5f);
}
}