12 lines
327 B
C#
12 lines
327 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class soundbutton : MonoBehaviour, IPointerDownHandler
|
|
{
|
|
public void OnPointerDown(PointerEventData pointerEventData)
|
|
{
|
|
GameObject.Find("btn_click").GetComponent<AudioSource>().Play();
|
|
}
|
|
} |