Skip to content

Commit

Permalink
Fixed logic error with "Start Game" button
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Nelson committed Jun 6, 2016
1 parent 3eac964 commit 44ea1ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Assets/Game Assets/Scripts/LoadButtonScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public void LoadLevel(int levelNum){
}

public void NewGame(){
if (PlayerPrefs.GetInt ("Space-Stars") > 0) {
if (PlayerPrefs.GetInt ("Mountain-Stars") > 0) {
SceneManager.LoadScene (5);
} else if (PlayerPrefs.GetInt ("Mountain-Stars") > 0) {
SceneManager.LoadScene (4);
} else if (PlayerPrefs.GetInt ("Forest-Stars") > 0) {
SceneManager.LoadScene (3);
SceneManager.LoadScene (4);
} else if (PlayerPrefs.GetInt ("Ocean-Stars") > 0) {
SceneManager.LoadScene (3);
} else if (PlayerPrefs.GetInt ("Desert-Stars") > 0) {
SceneManager.LoadScene (2);
} else {
SceneManager.LoadScene (1);
Expand Down
5 changes: 0 additions & 5 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ PlayerSettings:
m_Bits: 238
iPhoneSdkVersion: 988
iPhoneTargetOSVersion: 22
tvOSSdkVersion: 0
tvOSTargetOSVersion: 900
uIPrerenderedIcon: 0
uIRequiresPersistentWiFi: 0
uIRequiresFullScreen: 1
Expand Down Expand Up @@ -200,7 +198,6 @@ PlayerSettings:
wiiUSystemHeapSize: 128
wiiUTVStartupScreen: {fileID: 0}
wiiUGamePadStartupScreen: {fileID: 0}
wiiUDrcBufferDisabled: 0
wiiUProfilerLibPath:
actionOnDotNetUnhandledException: 1
enableInternalProfiler: 0
Expand Down Expand Up @@ -268,7 +265,6 @@ PlayerSettings:
ps4DownloadDataSize: 0
ps4GarlicHeapSize: 2048
ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ
ps4UseDebugIl2cppLibs: 0
ps4pnSessions: 1
ps4pnPresence: 1
ps4pnFriends: 1
Expand Down Expand Up @@ -334,7 +330,6 @@ PlayerSettings:
psp2UseLibLocation: 0
psp2InfoBarOnStartup: 0
psp2InfoBarColor: 0
psp2UseDebugIl2cppLibs: 0
psmSplashimage: {fileID: 0}
spritePackerPolicy:
scriptingDefineSymbols: {}
Expand Down

0 comments on commit 44ea1ec

Please sign in to comment.