22 lines
694 B
C#
22 lines
694 B
C#
using UnityEngine;
|
||
using UnityEngine.Playables;
|
||
using UnityEngine.Timeline;
|
||
|
||
namespace GameWrapper.Timeline.CommonAction
|
||
{
|
||
/// <summary>
|
||
/// 通用动作轨道(独立版本,不依赖StoryManager)
|
||
/// 用于普通Timeline中控制GameObject的显隐等通用操作
|
||
/// </summary>
|
||
[TrackClipType(typeof(CommonActionClip))]
|
||
[TrackBindingType(typeof(GameObject))]
|
||
public class CommonActionTrack : TrackAsset
|
||
{
|
||
public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
|
||
{
|
||
var mixer = ScriptPlayable<CommonActionMixerBehaviour>.Create(graph, inputCount);
|
||
return mixer;
|
||
}
|
||
}
|
||
}
|