リポジトリ
使用例
using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { [SerializeField] private StoppableAudioPlayer m_player; [SerializeField] private AudioClip m_audioClip; private void Start() { // 再生します var disposable = m_player.Play ( audioClip: m_audioClip, volume: 1.0f ); // 停止します disposable.Dispose(); } }