You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Feel/MMTools/Tools/MMAudio/MMSoundManager/Events/MMSoundManagerEvent.cs

37 lines
825 B
C#

1 month ago
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MoreMountains.Tools
{
public enum MMSoundManagerEventTypes
{
SaveSettings,
LoadSettings,
ResetSettings,
SettingsLoaded
}
/// <summary>
/// This event will let you trigger a save/load/reset on the MMSoundManager settings
///
/// Example : MMSoundManagerEvent.Trigger(MMSoundManagerEventTypes.SaveSettings);
/// will save settings.
/// </summary>
public struct MMSoundManagerEvent
{
public MMSoundManagerEventTypes EventType;
public MMSoundManagerEvent(MMSoundManagerEventTypes eventType)
{
EventType = eventType;
}
static MMSoundManagerEvent e;
public static void Trigger(MMSoundManagerEventTypes eventType)
{
e.EventType = eventType;
MMEventManager.TriggerEvent(e);
}
}
}