SHADE_Y3/Assets/Scripts/Audio/AudioHandler.cs

24 lines
548 B
C#
Raw Normal View History

2023-02-02 16:58:40 +08:00
using SHADE;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SHADE_Scripting.Audio
{
public static class AudioHandler
{
public static Dictionary<string, AudioClipHandler> audioClipHandlers = new Dictionary<string, AudioClipHandler>();
//Functions here, maybe
2023-02-04 01:44:00 +08:00
public static void stopAllSounds(bool fadeOut)
{
foreach (KeyValuePair<string, AudioClipHandler> h in audioClipHandlers)
{
h.Value.Stop(fadeOut);
}
}
2023-02-02 16:58:40 +08:00
}
}