public override void Restore() { var t = targetMoveAlongPath; targetMoveAlongPath = _originalTarget; base.Restore(); targetMoveAlongPath = t; }
public override void Reset() { base.Reset(); targetMoveAlongPath = GetComponent<MoveAlongPath>(); from = current; to = current; }
public override void Record() { _originalTarget = targetMoveAlongPath; base.Record(); }