//Запускает зацикленный источник звука public void PlayAudioContinuous(AudioClipType _audioType, ActionToCheck _toCheck) { Audio audio = audios[listsOfAudios[_audioType]]; if (audio.GetAudioSource() == null) { audio = PlayAudio(_audioType); audio.SetActionToCheck(_toCheck); audio.GetAudioSource().loop = true; audioSourcesContinuous.Add(audio); } }
public void SetActionToCheck(ActionToCheck _action) { checkContinuous = _action; }