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.

31 lines
700 B
C#

using UnityEngine;
using UnityEngine.Timeline;
namespace Game
{
public class ClipThrowTurn : TimelineClipBase
{
private ThrowTurnClip _mRealAsset;
private GameEntity target;
public override void OnEnter()
{
_mRealAsset = Asset as ThrowTurnClip;
target = Util.GetEntity(Owner.skill.ThrowTarget);
}
public override void OnStay()
{
var isRight = _mRealAsset.template.isRight;
if (!Owner.move.IsRight)
{
isRight = !isRight;
}
Util.EntityTurn(target, isRight);
}
public override void OnLeave()
{
}
}
}