示例#1
0
 private void OnMouseDown()
 {
     if (OnClickSnd.clip == null)
     {
         return;
     }
     ExtensionAudio.PlayAudioClip(OnClickSnd, transform.position);
 }
示例#2
0
 private void OnMouseEnter()
 {
     if (OnEnterSnd.clip == null)
     {
         return;
     }
     ExtensionAudio.PlayAudioClip(OnEnterSnd, transform.position);
 }
示例#3
0
    public void OnPointerClick(PointerEventData eventData)
    {
        if (!_button.interactable)
        {
            return;
        }

        ExtensionAudio.PlayAudioClip(clicked, transform.position);
        SetClip(clicked);
    }
示例#4
0
 public void OnPointerClick(PointerEventData eventData)
 {
     ExtensionAudio.PlayAudioClip(clicked, transform.position);
 }