Skip to content

Commit 1de2a25

Browse files
committed
Only execute skip code once + fix capitalization
1 parent 144660e commit 1de2a25

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

FastFail/FailSkip.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class FailSkip : MonoBehaviour
2222

2323
protected bool _standardLevel;
2424
protected bool _hasFailed = false;
25+
protected bool _skipped = false;
2526
protected bool autoSkip;
2627

2728
public void Awake()
@@ -68,7 +69,7 @@ public void OnLevelFail()
6869

6970
public void Update()
7071
{
71-
if (_hasFailed && (autoSkip || _vrControllersInputManager.MenuButtonDown()))
72+
if (_hasFailed && (autoSkip || _vrControllersInputManager.MenuButtonDown()) && !_skipped)
7273
{
7374
if (_standardLevel)
7475
{
@@ -88,6 +89,8 @@ public void Update()
8889

8990
_missionLevelSceneSetupData.Finish(missionCompletionReuslts);
9091
}
92+
93+
_skipped = true;
9194
}
9295
}
9396
}

FastFail/UI/settings.bsml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<settings-container>
2-
<checkbox text='Auto skip' value='autoSkip' hover-hint='If disabled, you will have to press the menu (pause) button to skip the fail animation'></checkbox>
2+
<checkbox text='Auto Skip' value='autoSkip' hover-hint='If disabled, you will have to press the menu (pause) button to skip the fail animation'></checkbox>
33
</settings-container>

FastFail/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"gameVersion": "1.8.0",
66
"id": "FastFail",
77
"name": "FastFail",
8-
"version": "0.8.0",
8+
"version": "1.0.0",
99
"features": []
1010
}

0 commit comments

Comments
 (0)