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.
23 lines
554 B
C#
23 lines
554 B
C#
namespace Game
|
|
{
|
|
public class ClipInputControl : TimelineClipBase
|
|
{
|
|
private InputControlClip _mRealAsset;
|
|
|
|
public override void OnEnter()
|
|
{
|
|
_mRealAsset = Asset as InputControlClip;
|
|
Owner.move.IsFreeTurn = _mRealAsset.template.IsFreeTurn;
|
|
}
|
|
|
|
public override void OnStay()
|
|
{
|
|
Owner.skill.CastDir = Owner.move.MoveDir;
|
|
}
|
|
|
|
public override void OnLeave()
|
|
{
|
|
Owner.move.IsFreeTurn = !_mRealAsset.template.IsFreeTurn;
|
|
}
|
|
}
|
|
} |