protected override void SetOrientation(object target, TweenPlugPathOrientOptions options, TweenPlugPath path, float pathPerc) { var body = (Rigidbody2D)target; var trans = body.transform; var rot = TweenPlugOrient.GetOrientation2D(options.orientMode, trans, path, pathPerc); body.MoveRotation(rot); }
protected override void SetOrientation(object target, TweenPlugPathOrientOptions options, TweenPlugPath path, float pathPerc) { var trans = (Transform)target; trans.rotation = TweenPlugOrient.GetOrientation(options.orientMode, options.lockAxis, trans, path, pathPerc); }