using UnityEngine; // ReSharper disable once CheckNamespace namespace DarkTonic.MasterAudio { /// /// This class is returned from MasterAudio.PlaySound methods unless you choose one of the 'AndForget' methods. It tells you whether the sound was played, scheduled or neither. It also contains a reference to the Variation used to play the sound. /// [SerializeField] // ReSharper disable once CheckNamespace public class PlaySoundResult { public PlaySoundResult() { SoundPlayed = false; SoundScheduled = false; ActingVariation = null; } /// /// This property will tell you whether the sound was played or not. /// public bool SoundPlayed { get; set; } /// /// This property will tell you whether the sound was scheduled or not. /// public bool SoundScheduled { get; set; } /// /// This property will give you a reference to the Variation chosen, so you can do things to it like fade out, get notified of completion, etc. /// public SoundGroupVariation ActingVariation { get; set; } } }