public void DoAction() { if (GameOptions.Instance.UseAndroidNativeAudio) { ANAMusic.release(NativeAudioId); } switch (action) { case Action.Back: print("Loading LevelSelection scene."); StartCoroutine(View.ReturnToLevelSelectionCoroutine()); break; case Action.Retry: BackgroundCanvasHelper.PersistBackgroundCanvas(); SceneManager.LoadScene("CytusGame"); break; case Action.Result: BackgroundCanvasHelper.PersistBackgroundCanvas(); print("Loading GameResult scene."); SceneManager.LoadScene("GameResult"); break; } }
public void DoAction() { if (!CytoidApplication.CurrentLevel.isInternal && Application.platform == RuntimePlatform.Android) { ANAMusic.release(anaId); } switch (action) { case Action.Back: print("Loading LevelSelection scene."); StartCoroutine(GoBackToLevelSelectionCoroutine()); break; case Action.Retry: BackgroundCanvasHelper.PersistBackgroundCanvas(); SceneManager.LoadScene("Game"); break; case Action.Result: BackgroundCanvasHelper.PersistBackgroundCanvas(); print("Loading GameResult scene."); SceneManager.LoadScene("GameResult"); break; } }
public void DoAction() { BackgroundCanvasHelper.PersistBackgroundCanvas(); switch (action) { case Action.Retry: SceneManager.LoadScene("CytusGame"); break; case Action.Next: SceneManager.LoadScene("LevelSelection"); break; } }
public void DoAction() { switch (action) { case Action.Go: print("Loading Game scene."); PlayerPrefsExt.SetBool("early_late_indicator", earlyLateIndicatorToggle.isOn); PlayerPrefsExt.SetBool("larger_hitboxes", largerHitboxesToggle.isOn); BackgroundCanvasHelper.PersistBackgroundCanvas(); SceneManager.LoadScene("CytusGame"); break; } }
public void DoAction() { switch (action) { case Action.Go: print("Loading Game scene."); PlayerPrefs.SetFloat("user_offset", float.Parse(userOffsetInput.text)); PlayerPrefsExt.SetBool("show_scanner", showScannerToggle.isOn); PlayerPrefsExt.SetBool("inverse", isInversedToggle.isOn); PlayerPrefs.SetString("ring_color", ringColorInput.text); PlayerPrefs.SetString("ring_color_alt", ringColorAltInput.text); PlayerPrefs.SetString("fill_color", fillColorInput.text); PlayerPrefs.SetString("fill_color_alt", fillColorAltInput.text); BackgroundCanvasHelper.PersistBackgroundCanvas(); SceneManager.LoadScene("Game"); break; } }