调整
This commit is contained in:
@@ -21,11 +21,11 @@ namespace Cielonos.MainGame.Characters
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
player.operationSc.OnDash += delegate(Vector3 dashDirection)
|
||||
player.operationSc.OnDash += delegate(Vector3 inputDirection)
|
||||
{
|
||||
player.landMovementSc.TurnToDirection(dashDirection);
|
||||
Vector3 cameraForward = player.viewSc.playerCamera.transform.forward.Flatten();
|
||||
Vector3 dashCameraRotation = CalculateDashAngles(dashDirection, cameraForward);
|
||||
player.landMovementSc.TurnToDirection(inputDirection);
|
||||
Vector3 dashCameraRotation = CalculateDashAngles(inputDirection, cameraForward);
|
||||
player.feedbackSc["Dash"].feedback.GetFeedbackOfType<MMF_CinemachineRotation>().RotationAmplitude = dashCameraRotation;
|
||||
player.feedbackSc["Dash"].feedback.GetFeedbackOfType<MMF_RadialBlur>().TargetCenter = player.GetNormalizedScreenPosition();
|
||||
fullBodyFuncAnimSm.Play("Dash");
|
||||
|
||||
Reference in New Issue
Block a user