Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public AudioSource myFx;
- public AudioClip hoverFx;
- public AudioClip clickFx;
- public void HoverSound()
- {
- myFx.PlayOneShot(hoverFx);
- }
- public void ClickSound()
- {
- myFx.PlayOneShot(clickFx);
- }
- public void BackPressed()
- {
- if (this.gameObject.activeInHierarchy == true)
- {
- FindObjectOfType<PauseMenu>().BackButton();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement