狗屎Minimax坏我代码
This commit is contained in:
@@ -238,13 +238,22 @@ namespace Cielonos.MainGame.Characters
|
||||
isJumping = true;
|
||||
gravitationalMovement = Vector3.zero;
|
||||
}
|
||||
|
||||
|
||||
protected override void UpdateFinalMovement()
|
||||
{
|
||||
base.UpdateFinalMovement();
|
||||
float horizontalSpeed = horizontalMovement.magnitude / DeltaTime;
|
||||
float remapFactor = Mathf.InverseLerp(10f, 15f, horizontalSpeed);
|
||||
PostProcessingManager.Instance.speedLinesSm.SetRemap(1 - remapFactor);
|
||||
|
||||
if (!isDashing && !isDodging)
|
||||
{
|
||||
PostProcessingManager.Instance.speedLinesSm.remap.IsPausing = false;
|
||||
float horizontalSpeed = horizontalMovement.magnitude / DeltaTime;
|
||||
float remapFactor = Mathf.InverseLerp(10f, 15f, horizontalSpeed);
|
||||
PostProcessingManager.Instance.speedLinesSm.SetRemap(1 - remapFactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
PostProcessingManager.Instance.speedLinesSm.remap.IsPausing = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user