using System.Collections.Generic; using System.Linq; using UnityEngine; namespace ClusterVR.CreatorKit.Item.Implements { [DisallowMultipleComponent] public sealed class HumanoidAnimationList : MonoBehaviour, IHumanoidAnimationList, IIdContainer { [SerializeField] HumanoidAnimationListEntry[] humanoidAnimations; public IReadOnlyCollection HumanoidAnimations => humanoidAnimations; IEnumerable IIdContainer.Ids => humanoidAnimations.Select(a => a.Id); #if UNITY_EDITOR public IReadOnlyCollection RawHumanoidAnimations => humanoidAnimations; #endif public void Construct(HumanoidAnimationListEntry[] humanoidAnimations) { this.humanoidAnimations = humanoidAnimations; } } }