private void Start() { // Set up game's stuff Application.targetFrameRate = 60; Screen.orientation = ScreenOrientation.Portrait; //Screen.SetResolution(540, 960, false); // Load profile SCR_Profile.Init(); SCR_Profile.LoadProfile(); bossSelecting = SCR_Profile.bossSelecting; RefreshSoundButtonStatus(); UpdateMoneyNumber(); UpdateBoss(); dgbBoss[0].GetComponentInChildren <MeshRenderer>().sharedMaterial.SetFloat("_FlashAmount", 0); // Music SCR_WaitMusic.FadeIn(); SCR_PunchMusic.FadeOut(); SCR_RunSound.Stop(); // OK, confirm that menu is now the first state menuLoaded = true; // Skip right into gameplay for tutorial /* * if (SCR_Profile.showTutorial == 1) { * SceneManager.LoadScene("GSGameplay/SCN_Gameplay"); * } */ }
public void OnReplay() { SCR_RunSound.Stop(); SCR_Audio.PlayClickSound(); SceneManager.LoadScene("GSGameplay/SCN_Gameplay"); }