void Button_Ranking(MenuObject_Button button) { Debug.Log("StartScreen >>> Button_Ranking()"); SetRankingData(); RankingUI_BG.SetActive(true); }
void Button_Option(MenuObject_Button button) { zFoxFadeFilter.instance.FadeOut (Color.black, 0.5f); AppSound.instance.SE_MENU_OK.Play (); jumpSceneName = "Menu_Option"; Invoke ("SceneJump",1.2f); }
void Button_VRPad(MenuObject_Button button) { SaveData.VRPadEnabled = SaveData.VRPadEnabled ? false : true; button.SetLabelText((SaveData.VRPadEnabled ? "On" : "Off")); AppSound.instance.SE_MENU_OK.Play(); }
void Button_DebugJump(MenuObject_Button button) { SaveData.continuePlay = false; PlayerController.checkPointEnabled = false; SceneManager.LoadScene(button.transform.GetComponentInChildren <TextMesh>().text); AppSound.instance.SE_MENU_OK.Play(); }
void Button_Prev(MenuObject_Button button) { zFoxFadeFilter.instance.FadeOut(Color.black, 0.5f); Invoke("SceneJump", 0.7f); AppSound.instance.SE_MENU_CANCEL.Play(); }
void Button_Option(MenuObject_Button button) { zFoxFadeFilter.instance.FadeOut(Color.black, 0.5f); AppSound.instance.SE_MENU_OK.Play(); jumpSceneName = "Menu_Option"; Invoke("SceneJump", 1.2f); }
void Button_Continue(MenuObject_Button button) { SaveData.continuePlay = true; PlayerController.initParam = false; zFoxFadeFilter.instance.FadeOut (Color.white, 1.0f); AppSound.instance.SE_MENU_OK.Play (); jumpSceneName = SaveData.LoadContinueSceneName(); Invoke ("SceneJump",1.2f); }
void Button_Continue(MenuObject_Button button) { SaveData.continuePlay = true; PlayerController.initParam = false; zFoxFadeFilter.instance.FadeOut(Color.white, 1.0f); jumpSceneName = SaveData.LoadContinueSceneName(); Invoke("SceneJump", 1.2f); }
void Button_Play(MenuObject_Button button) { SaveData.continuePlay = false; PlayerController.initParam = true; PlayerController.checkPointEnabled = false; zFoxFadeFilter.instance.FadeOut (Color.white, 1.0f); AppSound.instance.SE_MENU_OK.Play (); jumpSceneName = "StageA"; Invoke ("SceneJump",1.2f); }
void Button_Play(MenuObject_Button button) { SaveData.continuePlay = false; PlayerController.initParam = true; PlayerController.checkPointEnabled = false; zFoxFadeFilter.instance.FadeOut(Color.white, 1.0f); AppSound.instance.SE_MENU_OK.Play(); jumpSceneName = "StageA"; Invoke("SceneJump", 1.2f); }
void Button_Play(MenuObject_Button button) { Debug.Log("StartScreen >>> Button_Play()"); if (isOptionUIOpen) { return; } BGM.Stop(); zFoxFadeFilter.instance.FadeOut(Color.white, 1.0f); jumpSceneName = "GameStage"; Invoke("SceneJump", 1.2f); }
void Button_SaveDataReset_Yes(MenuObject_Button button) { GameObject.Find ("MenuFormA").transform.position = new Vector3 (0.0f, 0.0f, 0.0f); GameObject.Find ("MenuFormB").transform.position = new Vector3 (100.0f, 0.0f, 0.0f); SaveData.DeleteAndInit (true); AppSound.instance.fm.SetVolume("BGM",SaveData.SoundBGMVolume); AppSound.instance.fm.SetVolume("SE",SaveData.SoundSEVolume); MenuObject_Slidebar[] slidebarList = GameObject.Find ("MenuFormA").GetComponentsInChildren<MenuObject_Slidebar> (); foreach(MenuObject_Slidebar slidebar in slidebarList) { slidebar.Init(); } AppSound.instance.SE_MENU_OK.Play (); }
void Button_Option(MenuObject_Button button) { Debug.Log("StartScreen >>> Button_Option()"); if (isOptionUIOpen) { return; } //옵션화면 활성화 isOptionUIOpen = true; Time.timeScale = 0; OptionUI_BG.SetActive(true); SaveData.LoadOption(); SetOptionData(); }
void Button_SaveDataReset_Yes(MenuObject_Button button) { GameObject.Find("MenuFormA").transform.position = new Vector3(0.0f, 0.0f, 0.0f); GameObject.Find("MenuFormB").transform.position = new Vector3(100.0f, 0.0f, 0.0f); SaveData.DeleteAndInit(true); AppSound.instance.fm.SetVolume("BGM", SaveData.SoundBGMVolume); AppSound.instance.fm.SetVolume("SE", SaveData.SoundSEVolume); MenuObject_Slidebar[] slidebarList = GameObject.Find("MenuFormA").GetComponentsInChildren <MenuObject_Slidebar> (); foreach (MenuObject_Slidebar slidebar in slidebarList) { slidebar.Init(); } AppSound.instance.SE_MENU_OK.Play(); }
void Button_Debug(MenuObject_Button button) { Application.LoadLevel("Menu_Debug"); }
void Button_SaveDataReset_No(MenuObject_Button button) { GameObject.Find("MenuFormA").transform.position = new Vector3(0.0f, 0.0f, 0.0f); GameObject.Find("MenuFormB").transform.position = new Vector3(100.0f, 0.0f, 0.0f); AppSound.instance.SE_MENU_CANCEL.Play(); }
void Button_DebugJump(MenuObject_Button button) { SaveData.continuePlay = false; PlayerController.checkPointEnabled = false; Application.LoadLevel(button.transform.GetComponentInChildren<TextMesh>().text); AppSound.instance.SE_MENU_OK.Play (); }
void Start() { zFoxFadeFilter.instance.FadeIn(Color.black, 0.5f); SaveData.LoadOption(); MenuObject_Button.FindMessage(GameObject.Find("MenuFormA"), "Button_VRPad").SetLabelText((SaveData.VRPadEnabled ? "On" : "Off")); }
void Button_Muteki(MenuObject_Button button) { SaveData.debug_Invicible = (SaveData.debug_Invicible) ? false : true; button.SetLabelText ((SaveData.debug_Invicible) ? "Muteki(On)" : "Muteki(Off)"); }
void Button_SaveDataReset_No(MenuObject_Button button) { GameObject.Find ("MenuFormA").transform.position = new Vector3 (0.0f, 0.0f, 0.0f); GameObject.Find ("MenuFormB").transform.position = new Vector3 (100.0f, 0.0f, 0.0f); AppSound.instance.SE_MENU_CANCEL.Play (); }
void Button_VRPad(MenuObject_Button button) { SaveData.VRPadEnabled = SaveData.VRPadEnabled ? false : true; button.SetLabelText ((SaveData.VRPadEnabled ? "On" : "Off")); AppSound.instance.SE_MENU_OK.Play (); }
void Button_Credit(MenuObject_Button button) { Debug.Log("StartScreen >>> Button_Credit()"); SetOptionData(); CreditUI_BG.SetActive(true); }
void Button_Muteki(MenuObject_Button button) { SaveData.debug_Invicible = (SaveData.debug_Invicible) ? false : true; button.SetLabelText((SaveData.debug_Invicible) ? "Muteki(On)" : "Muteki(Off)"); }
void Button_Prev(MenuObject_Button button) { zFoxFadeFilter.instance.FadeOut (Color.black, 0.5f); Invoke ("SceneJump",0.7f); AppSound.instance.SE_MENU_CANCEL.Play (); }
void Button_Debug(MenuObject_Button button) { SceneManager.LoadScene("Menu_Debug"); }