Secretly fixed bugs in unrelated areas
This commit is contained in:
parent
f24265b701
commit
355be58388
|
@ -3,5 +3,5 @@ guid: d9e175272e5db81479818ac4e73cc48b
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: ctrteppan/common
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
@ -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) { }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue