您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
17 行
626 B
17 行
626 B
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.Events;
|
|
|
|
/// <summary>
|
|
/// Event on which <c>AudioCue</c> components send a message to play SFX and music. <c>AudioManager</c> listens on these events, and actually plays the sound.
|
|
/// </summary>
|
|
[CreateAssetMenu(menuName = "Game Event/Audio Cue")]
|
|
public class AudioCueEventSO : ScriptableObject
|
|
{
|
|
public UnityAction<AudioCueSO, AudioConfigurationSO, Vector3> eventRaised;
|
|
|
|
public void Raise(AudioCueSO audioCue, AudioConfigurationSO audioConfiguration, Vector3 positionInSpace)
|
|
{
|
|
eventRaised.Invoke(audioCue, audioConfiguration, positionInSpace);
|
|
}
|
|
}
|