using GameplayIngredients; using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(AudioSource))] public class AudioSourcePausable : MonoBehaviour { private void OnEnable() { Manager.Get().RegisterPausedManagedSource(GetComponent()); } private void OnDisable() { Manager.Get().RemovePausedManagedSource(GetComponent()); } }