public void buttonscene() { switch (transform.name) { case "TryBt": if (Maindirector.getSpan() <= 0f || Maindirector.getCyclespan() <= 0) { //defolt設定 Maindirector.setSpan(1.5f); Maindirector.setCyclespan(5); AdMob.bannerView.Hide(); } SceneManager.LoadScene("countdwon"); break; case "DataBt": SceneManager.LoadScene("histry"); AdMob.bannerView.Show(); break; case "OptionBt": SceneManager.LoadScene("optionscene"); AdMob.bannerView.Show(); break; case "exitBt": Application.Quit(); AdMob.bannerView.Destroy(); break; } }
public void updatedate() { //選択した値の読込 cycletimetext = cycletimedd.GetComponentInChildren <Text>().text; cyclecounttext = cyclecountdd.GetComponentInChildren <Text>().text; if (cycletimetext == "EASY(1.5)") { Maindirector.setSpan(1.5f); } else if (cycletimetext == "NORMAL(1.0)") { Maindirector.setSpan(1.0f); } else if (cycletimetext == "HARD(0.5)") { Maindirector.setSpan(0.5f); } else if (cycletimetext == "HARD(0.5)") { Maindirector.setSpan(0.5f); } else if (cycletimetext == "VERYEASY(2.0)") { Maindirector.setSpan(2.0f); } if (cyclecounttext == "5 Count") { Maindirector.setCyclespan(5); } else if (cyclecounttext == "10 Count") { Maindirector.setCyclespan(10); } else if (cyclecounttext == "20 Count") { Maindirector.setCyclespan(20); } else if (cyclecounttext == "30 Count") { Maindirector.setCyclespan(30); } Debug.Log(cycletimetext); Debug.Log(cyclecounttext); AdMob.bannerView.Hide(); SceneManager.LoadScene(menuscene); }