Secretly fixed bugs in unrelated areas

This commit is contained in:
fu-majime 2024-04-08 20:40:25 +09:00
parent f24265b701
commit 355be58388
2 changed files with 5 additions and 2 deletions

View file

@ -3,5 +3,5 @@ guid: d9e175272e5db81479818ac4e73cc48b
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:
assetBundleName: ctrteppan/common assetBundleName:
assetBundleVariant: assetBundleVariant:

View file

@ -111,6 +111,7 @@ namespace HeavenStudio.Games
void JustHold(PlayerActionEvent caller, float state) void JustHold(PlayerActionEvent caller, float state)
{ {
var currentBeat = caller.timer + caller.startBeat; var currentBeat = caller.timer + caller.startBeat;
isJust = false;
ScheduleInput(currentBeat, 1, InputAction_FlickRelease, JustJump, MissJump, Empty, CanJump); ScheduleInput(currentBeat, 1, InputAction_FlickRelease, JustJump, MissJump, Empty, CanJump);
if (state >= 1f || state <= -1f) if (state >= 1f || state <= -1f)
@ -132,6 +133,7 @@ namespace HeavenStudio.Games
void JustJump(PlayerActionEvent caller, float state) void JustJump(PlayerActionEvent caller, float state)
{ {
var currentBeat = caller.timer + caller.startBeat; var currentBeat = caller.timer + caller.startBeat;
isJust = true;
if (state >= 1f || state <= -1f) if (state >= 1f || state <= -1f)
{ {
@ -147,7 +149,8 @@ namespace HeavenStudio.Games
JumpMissAnim(caller.timer + caller.startBeat); JumpMissAnim(caller.timer + caller.startBeat);
} }
bool CanJump() { return isHold && !isGone;} bool isJust = false; // not fundamental solution
bool CanJump() { return isHold && !isGone || isJust;}
void Empty(PlayerActionEvent caller) { } void Empty(PlayerActionEvent caller) { }