Shegotwet/Assets/Scripts/Util/PlayClickSound_Only.cs

11 lines
306 B
C#
Raw Normal View History

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.s001_ButtonClick, 1f);
}
}