Secretly fixed bugs in unrelated areas
This commit is contained in:
parent
f24265b701
commit
355be58388
|
@ -3,5 +3,5 @@ guid: d9e175272e5db81479818ac4e73cc48b
|
|||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName: ctrteppan/common
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
@ -111,6 +111,7 @@ namespace HeavenStudio.Games
|
|||
void JustHold(PlayerActionEvent caller, float state)
|
||||
{
|
||||
var currentBeat = caller.timer + caller.startBeat;
|
||||
isJust = false;
|
||||
ScheduleInput(currentBeat, 1, InputAction_FlickRelease, JustJump, MissJump, Empty, CanJump);
|
||||
|
||||
if (state >= 1f || state <= -1f)
|
||||
|
@ -132,6 +133,7 @@ namespace HeavenStudio.Games
|
|||
void JustJump(PlayerActionEvent caller, float state)
|
||||
{
|
||||
var currentBeat = caller.timer + caller.startBeat;
|
||||
isJust = true;
|
||||
|
||||
if (state >= 1f || state <= -1f)
|
||||
{
|
||||
|
@ -147,7 +149,8 @@ namespace HeavenStudio.Games
|
|||
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) { }
|
||||
|
||||
|
|
Loading…
Reference in a new issue