BITFALL/Assets/BITKit/Unity/Scripts/Timeline/OverrideEntityClip.cs

17 lines
481 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
namespace BITKit.Entities.Timeline
{
public class OverrideEntityClip :PlayableAsset
{
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
{
var playable = ScriptPlayable<OverrideEntityBehaviour>.Create(graph);
var behaviour = playable.GetBehaviour();
return playable;
}
}
}