private void Start() { _score = 0; scoreLabel.text = _score.ToString(); settingPopup.Close(); speedSlider.value = PlayerPrefs.GetFloat("speed", 1); }
private void Start() { menu.gameObject.SetActive(false); score = 0; scrollLable.text = score.ToString(); menuSetting.Close(); }
// Use this for initialization void Start() { score = 0; scoreLabel.text = score.ToString(); settingPopup.Close(); endingPopUp.Close(); }
public void OnCloseSettings() { //Debug.Log ("open settings"); settingPopup.Close(); isPopupOpen = !isPopupOpen; }
public void OnStartButton() { startMenu.Close(); }
public void NotDead() { dieMenu.Close(); }
void Start() { _score = 0; scoreLabel.text = _score.ToString(); settingPopup.Close(); }
//void OnMouseDown() //{ //} //void OnMouseUp() //{ // if (gameObject.name != "pause") // { // } //} public void OnMouseUpAsButton() { switch (gameObject.name) { case "achiv": Social.ShowAchievementsUI(); break; case "sign_out": PlayGamesPlatform.Instance.SignOut(); achiv.SetActive(false); stats.SetActive(false); services.SetActive(true); sign_out.SetActive(false); break; case "services": Social.localUser.Authenticate((bool success) => { // Удачно или нет? if (success) { achiv.SetActive(true); stats.SetActive(true); services.SetActive(false); print("123"); sign_out.SetActive(true); Social.ReportScore(PlayerPrefs.GetInt("Points"), "CgkIv-vamLwREAIQAQ", (bool success1) => { // Удачно или нет? }); } else { print("456"); } }); break; case "facebook": Application.OpenURL("https://www.facebook.com/groups/1172761489491919/"); break; case "vk": Application.OpenURL("https://vk.com/denoustudio"); break; case "rate": Application.OpenURL("market://details?id=com.KedaVladimir.Helljump"); break; case "play": Application.LoadLevel("play"); break; case "rating": Application.OpenURL("http://google.com"); break; case "stats": if (Social.localUser.authenticated) { //Social.ShowLeaderboardUI(); //PlayGamesPlatform.Instance.ShowLeaderboardUI("CgkIv-vamLwREAIQAQ"); ((PlayGamesPlatform)Social.Active).ShowLeaderboardUI("CgkIv-vamLwREAIQAQ"); } else { Social.localUser.Authenticate((bool success) => { // Удачно или нет? if (success) { ((PlayGamesPlatform)Social.Active).ShowLeaderboardUI("CgkIv-vamLwREAIQAQ"); services.SetActive(false); print("123"); sign_out.SetActive(true); } else { sign_out.SetActive(false); print("456"); } }); // Application.LoadLevel("main"); } break; case "home": pause = false; Time.timeScale = 1; Application.LoadLevel("main"); break; case "shop": Social.ReportProgress("CgkIv-vamLwREAIQBg", 100.0f, (bool success) => { // Удачно или нет? }); Application.LoadLevel("shop"); break; case "restart": pause = false; Time.timeScale = 1; Application.LoadLevel(Application.loadedLevel); break; case "pause": Social.ReportProgress("CgkIv-vamLwREAIQBQ", 100.0f, (bool success) => { // Удачно или нет? }); if (pause == false) { Time.timeScale = 0; options.SetActive(true); pause_text.SetActive(true); pause = true; resume.SetActive(true); restart.SetActive(true); home.SetActive(true); Popup(); } else if (pause == true) { Time.timeScale = PlayerPrefs.GetFloat("GameScale"); settingPopup.Close(); rating.SetActive(false); stats.SetActive(false); pause = false; options.SetActive(false); resume.SetActive(false); restart.SetActive(false); home.SetActive(false); Snow.Close(); Popup(); //activePopup = false; pause_text.SetActive(false); } break; case "resume": Time.timeScale = PlayerPrefs.GetFloat("GameScale"); options.SetActive(false); pause_text.SetActive(false); pause = false; resume.SetActive(false); restart.SetActive(false); home.SetActive(false); settingPopup.Close(); Snow.Close(); Popup(); //activePopup = false; break; case "options": if (activePopup == false) { activePopup = true; if (Application.loadedLevelName == "play") { pause_text.SetActive(false); } if (month == 12 || month == 1 || month == 2) { Snow.Open(); } else { settingPopup.Open(); } Tutor.SetActive(false); NewPers.SetActive(false); } else { activePopup = false; if (month == 12 || month == 1 || month == 2) { Snow.Close(); } else { settingPopup.Close(); } if (Application.loadedLevelName == "play") { pause_text.SetActive(true); } } break; } }
// Use this for initialization void Start() { settingPopup.Close(); }
void Start() { settingPopup.Close(); // 初始设置窗口不弹出 rank.onClick.AddListener(OnLeaderBoardClick); }
private void Start() { _setting.Close(); _score = 0; _scorelable.text = _score.ToString(); }