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().Play(); } }