using System;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;

namespace CustomTimeline
{
    [Serializable]
    public class TimelineSpeedClip : PlayableAsset, ITimelineClipAsset
    {
        public TimelineSpeedBehaviour template = new TimelineSpeedBehaviour();

        public ClipCaps clipCaps
        {
            get { return ClipCaps.Extrapolation | ClipCaps.Blending; }
        }

        public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
        {
            return ScriptPlayable<TimelineSpeedBehaviour>.Create(graph, template);
        }
    }
}