using System; using System.Collections.Generic; using UnityEngine; namespace UniVRM10.FastSpringBones.System { /// /// 1キャラに対応するFastSpringBoneのスコープ /// public class FastSpringBoneScope : IDisposable { private readonly FastSpringBoneService _fastSpringBoneService; public IReadOnlyList Springs { get; } public FastSpringBoneScope(IReadOnlyList springs) { Springs = springs; _fastSpringBoneService = FastSpringBoneService.Instance; _fastSpringBoneService.BufferCombiner.Register(this); } public void Dispose() { _fastSpringBoneService.BufferCombiner.Unregister(this); } } }