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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb2f1526149f8b44cad00bbed8424a37
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user