Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0cf7da7

Browse files
Merge branch 'master' of github.com:coderDarren/UnityCore
2 parents 9434d83 + fb057c6 commit 0cf7da7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎Data/DataController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public int Score {
2828
return GetInt(DATA_SCORE);
2929
}
3030
set {
31+
// soft clamp value at 0
32+
if (value < 0) {
33+
value = 0;
34+
}
35+
3136
SaveInt(DATA_SCORE, value);
3237
int _score = this.Score;
3338
if (_score > this.Highscore) {

‎Menu/PageController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void TurnPageOff(PageType _off, PageType _on=PageType.None, bool _waitFor
6767
_offPage.Animate(false);
6868
}
6969

70-
if (_waitForExit) {
70+
if (_waitForExit&&_offPage.useAnimation) {
7171
Page _onPage = GetPage(_on);
7272
StopCoroutine("WaitForPageExit");
7373
StartCoroutine(WaitForPageExit(_onPage, _offPage));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /