35 lines
826 B
C#
35 lines
826 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BITKit.Animations
|
|
{
|
|
public interface IMotionMatchingObject{}
|
|
public interface IMotionMatchingService : IObjectMatcher<string,IMotionMatchingObject>
|
|
{
|
|
|
|
}
|
|
public interface IMotionMatchingClip
|
|
{
|
|
public AnimationClip Clip { get; }
|
|
}
|
|
|
|
public interface IMotionMatchingSequence
|
|
{
|
|
public AnimationClip[] Sequence { get; }
|
|
}
|
|
[Serializable]
|
|
public struct MotionMatchingClip:IMotionMatchingObject,IMotionMatchingClip
|
|
{
|
|
[SerializeField] private AnimationClip clip;
|
|
public AnimationClip Clip => clip;
|
|
}
|
|
[Serializable]
|
|
public struct MotionMatchingSequence:IMotionMatchingObject,IMotionMatchingSequence
|
|
{
|
|
[SerializeField] private AnimationClip[] sequence;
|
|
public AnimationClip[] Sequence => sequence;
|
|
}
|
|
}
|