Files
BITKit/Src/Unity/Scripts/MotionMatching/ScriptableMotionMatchingObject.cs
CortexCore b7b89ee71a 1
2024-03-31 23:31:00 +08:00

16 lines
524 B
C#

using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace BITKit.Animations
{
public class ScriptableMotionMatchingObject : ScriptableObject,IObjectElement<string,IMotionMatchingObject>
{
[SerializeReference,SubclassSelector] private IReference[] tags;
[SerializeReference,SubclassSelector] private IMotionMatchingObject value;
public bool IsMatch(string[] searchKey)=>MathE.Contains(tags.Cast(),searchKey);
public IMotionMatchingObject GetValue() => value;
}
}