25 lines
369 B
C#
25 lines
369 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class btnFX : MonoBehaviour
|
|
{
|
|
|
|
public AudioSource myFX;
|
|
public AudioClip hoverFX;
|
|
public AudioClip clickFX;
|
|
|
|
|
|
public void hoverSound()
|
|
{
|
|
myFX.PlayOneShot(hoverFX);
|
|
}
|
|
public void ClickSound()
|
|
{
|
|
myFX.PlayOneShot(clickFX);
|
|
}
|
|
|
|
|
|
}
|
|
|