mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Move transition variable back to being local to function
This commit is contained in:
@ -268,8 +268,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool HyperDashing => hyperDashModifier != 1;
|
public bool HyperDashing => hyperDashModifier != 1;
|
||||||
|
|
||||||
private const float hyperdash_transition_length = 180;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set hyperdash state.
|
/// Set hyperdash state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -277,6 +275,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
/// <param name="targetPosition">When this catcher crosses this position, this catcher ends hyperdashing.</param>
|
/// <param name="targetPosition">When this catcher crosses this position, this catcher ends hyperdashing.</param>
|
||||||
public void SetHyperdashState(double modifier = 1, float targetPosition = -1)
|
public void SetHyperdashState(double modifier = 1, float targetPosition = -1)
|
||||||
{
|
{
|
||||||
|
const float hyperdash_transition_length = 180;
|
||||||
|
|
||||||
bool previouslyHyperDashing = HyperDashing;
|
bool previouslyHyperDashing = HyperDashing;
|
||||||
if (modifier <= 1 || X == targetPosition)
|
if (modifier <= 1 || X == targetPosition)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user