2
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
793 B
C#

2 years ago
using UnityEngine;
namespace Game
{
public class ClipMovestep : TimelineClipBase
{
private MovestepClip _mRealAsset;
public override void OnEnter()
{
_mRealAsset = Asset as MovestepClip;
Owner.move.StepType = _mRealAsset.template.stepType;
Owner.move.StepValue = _mRealAsset.template.value;
}
public override void OnStay()
{
}
public override void OnLeave()
{
Owner.move.StepType = EMovestepType.None;
Owner.move.StepValue = Vector3.zero;
}
public override void OnPause(bool isPause)
{
if (isPause)
OnLeave();
else
OnEnter();
}
}
}