19 lines
502 B
C#
19 lines
502 B
C#
using UnityEngine;
|
|
using UnityEngine.Audio;
|
|
using System.Collections.Generic;
|
|
|
|
[CreateAssetMenu(fileName = "UISoundConfig", menuName = "UI/UISoundConfig")]
|
|
public class UISoundConfig : ScriptableObject
|
|
{
|
|
public AudioMixerGroup outputGroup;
|
|
|
|
[System.Serializable]
|
|
public class ButtonSoundEntry
|
|
{
|
|
public UIButtonType type;
|
|
public AudioClip hoverClip;
|
|
public AudioClip clickClip;
|
|
}
|
|
|
|
public List<ButtonSoundEntry> soundTable = new List<ButtonSoundEntry>();
|
|
} |