blob: a2246cfb723ddf6b6c6e9b0bd9e6a393fa6a2c4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using UnityEngine;
namespace MoreMountains.Feedbacks;
[AddComponentMenu("")]
[FeedbackHelp("This feedback will allow you to play an audio oneshot on the Thronefall Sound Manager.")]
[FeedbackPath("Thronefall/Audio Oneshot")]
public class OneShotAudioTrigger : MMF_Feedback
{
[MMFInspectorGroup("Audio", true, 12, true, false)]
[Tooltip("The oneshot you want to play.")]
public ThronefallAudioManager.AudioOneShot oneshot;
protected override void CustomPlayFeedback(Vector3 position, float feedbacksIntensity = 1f)
{
ThronefallAudioManager.Oneshot(oneshot);
}
}
|