Example #1
0
    public bool IsSoundPlaying(string name)
    {
        SoundEvent s = Array.Find(SoundEvents, sound => sound.name == name);

        if (s == null)
        {
            Debug.LogWarning("SoundManager: Sound not found in SoundEvents [" + name + "]");
            return(false);
        }

        return(s.IsPlayingOnDefaultSource());
    }