fixes, portal sound changed, faders
This commit is contained in:
15
Assets/_PROJECT/Components/Bow/Scripts/ButtonHoverSound.cs
Normal file
15
Assets/_PROJECT/Components/Bow/Scripts/ButtonHoverSound.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using FMODUnity;
|
||||
|
||||
public class ButtonHoverSound : MonoBehaviour, ISelectHandler, IDeselectHandler
|
||||
{
|
||||
public void OnSelect(BaseEventData eventData)
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterHover, gameObject);
|
||||
}
|
||||
public void OnDeselect(BaseEventData eventData)
|
||||
{
|
||||
// Nothing needed here, unless you want a deselect effect
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user