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/MMSoundManagerAllSoundsCont...

34 lines
993 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MoreMountains.Tools
{
public enum MMSoundManagerAllSoundsControlEventTypes
{
Pause, Play, Stop, Free, FreeAllButPersistent, FreeAllLooping
}
/// <summary>
/// This event will let you pause/play/stop/free all sounds playing through the MMSoundManager at once
///
/// Example : MMSoundManagerAllSoundsControlEvent.Trigger(MMSoundManagerAllSoundsControlEventTypes.Stop);
/// will stop all sounds playing at once
/// </summary>
public struct MMSoundManagerAllSoundsControlEvent
{
public MMSoundManagerAllSoundsControlEventTypes EventType;
public MMSoundManagerAllSoundsControlEvent(MMSoundManagerAllSoundsControlEventTypes eventType)
{
EventType = eventType;
}
static MMSoundManagerAllSoundsControlEvent e;
public static void Trigger(MMSoundManagerAllSoundsControlEventTypes eventType)
{
e.EventType = eventType;
MMEventManager.TriggerEvent(e);
}
}
}