private void OnPurchaseSucceded(Purchase purchase) { Debug.Log("Purchase succeded: " + purchase.Sku + "; Payload: " + purchase.DeveloperPayload); switch (purchase.Sku) { case SKU_10: ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 10000); break; case SKU_50: ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 50000); break; case SKU_100: ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 100000); break; case SKU_Life: ProtectedPrefs.SetInt("mLamp", ProtectedPrefs.GetInt("mLamp") + 10); break; default: Debug.LogWarning("Unknown SKU: " + purchase.Sku); break; } }
void AdCallbackhandler(ShowResult result) { switch (result) { case ShowResult.Finished: Debug.Log("Ad Finished. Rewarding player..."); if (freecoin) { ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 500); freecoin = false; } else { InstansShow(); } break; case ShowResult.Skipped: Debug.Log("Ad skipped. Son, I am dissapointed in you"); break; case ShowResult.Failed: Debug.Log("I swear this has never happened to me before"); break; } }
void InstansShow() { switch (bonuseNumber) { case 1: ProtectedPrefs.SetInt("Coins", coinsc2 + 250); break; case 2: ProtectedPrefs.SetInt("mBook", BookCount + 3); break; case 3: ProtectedPrefs.SetInt("mPipe", PipeCount + 2); break; case 4: ProtectedPrefs.SetInt("mEmerald", EmeraldCount + 4); break; case 5: ProtectedPrefs.SetInt("mGold", GoldCount + 2); break; default: ProtectedPrefs.SetInt("Coins", coinsc2 + 100); break; } buttonBon.SetActive(false); ProtectedPrefs.Save(); }
public void DoubleUp() { if (ProtectedPrefs.GetInt("Coins") >= 750 && dcLevel == 0) { ProtectedPrefs.SetInt("d_LvL", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") - 750); } else if (ProtectedPrefs.GetInt("Coins") >= 2500 && dcLevel == 1) { ProtectedPrefs.SetInt("d_LvL", 2); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") - 2500); } else if (ProtectedPrefs.GetInt("Coins") >= 5000 && dcLevel == 2) { ProtectedPrefs.SetInt("d_LvL", 3); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") - 5000); } else if (ProtectedPrefs.GetInt("Coins") >= 7500 && dcLevel == 3) { ProtectedPrefs.SetInt("d_LvL", 4); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") - 7500); } else if (ProtectedPrefs.GetInt("Coins") >= 10000 && dcLevel == 4) { ProtectedPrefs.SetInt("d_LvL", 5); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") - 10000); } }
private void GameOver() { showAd = true; GameOverPanel.SetActive(true); powerPanel.SetActive(false); ProtectedPrefs.SetInt("Coins", lcoin + coin); goCoin.text = "Coins: " + coin.ToString(); goScore.text = "Score: " + Controller.Distance.ToString("f0") + "0"; if (Controller.Distance > ProtectedPrefs.GetFloat("HighScore")) { ProtectedPrefs.SetFloat("HighScore", Controller.Distance); } if (ProtectedPrefs.HasKey("HighScore")) { goBScore.text = "Best Score: " + ProtectedPrefs.GetFloat("HighScore").ToString("f0") + "0"; } else { goBScore.text = "Best Score: " + Controller.Distance.ToString("f0") + "0"; } if (FB.IsLoggedIn) { #if !UNITY_EDITOR StartCoroutine(Facebook.Unity.FBManager.SetScore()); #endif } }
void Start() { GetGift(); switch (ProtectedPrefs.GetInt("DaysCount")) { case 1: giftText.text = "DAY 1: Your bonus + 300 Coin"; giftProgress.size = 0.2f; break; case 2: giftText.text = "DAY 2: Your bonus + 900 Coin"; giftProgress.size = 0.4f; break; case 3: giftText.text = "DAY 3: Your bonus + 1500 Coin"; giftProgress.size = 0.6f; break; case 4: giftText.text = "DAY 4: Your bonus + 2000 Coin"; giftProgress.size = 0.8f; break; case 5: giftText.text = "DAY 5: Your bonus + 5000 Coin"; giftProgress.size = 1.0f; break; } }
public void Out() { login = false; ProtectedPrefs.SetInt("login", 0); FB.LogOut(); UIFBLogin.SetActive(false); UIFBNotLogin.SetActive(true); }
public void noADS() { if (ProtectedPrefs.GetInt("Coins") >= 999000 && ProtectedPrefs.GetInt("bunner") == 0) { ProtectedPrefs.SetInt("bunner", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") - 999000); } }
void Load() { DaysCount = ProtectedPrefs.GetInt("DaysCount"); if (ProtectedPrefs.HasKey("LastGiftDateTime")) { LastGiftDateTime = DateTime.Parse(ProtectedPrefs.GetString("LastGiftDateTime")); } }
void Update() { if (Controller.iDie) { sourcebg.mute = true; } else if (GameControll.SaveMe && ProtectedPrefs.GetInt("Mute") != 0) { sourcebg.mute = false; } }
public void SaveLife() { SaveLifePanel.SetActive(false); ProtectedPrefs.SetInt("mLamp", lCount - 1); Controller.iDie = false; SaveMe = true; lifesave = false; GetLamp(); MainMenuPanel.SetActive(true); timerl = 0; sl.fillAmount = 1; }
public static IEnumerator SetScore() { if (FB.IsLoggedIn) { var scoreData = new Dictionary <string, string> (); scoreData ["score"] = ProtectedPrefs.GetInt("HighScore").ToString(); FB.API("/me/scores", HttpMethod.POST, delegate(IGraphResult result) { print("Score result" + result.Error); }, scoreData); } yield return(1); }
public void GetLamp() { if (ProtectedPrefs.HasKey("mLamp")) { lCount = ProtectedPrefs.GetInt("mLamp"); } else { lCount = 0; } itemAbsorb.getLamp = false; lamlCount.text = lCount.ToString(); }
void Start() { //ProtectedPrefs.SetInt("Coins", 50000000); animationManager = this.GetComponent <AnimationManager>(); store = false; curObjectNumber = 0; knifSelect = capSelect = otherSelect = false; if (!ProtectedPrefs.HasKey("Characters")) { ProtectedPrefs.SetInt("Characters", 0); ProtectedPrefs.SetInt("Cap", 0); ProtectedPrefs.SetInt("Character1", 1); ProtectedPrefs.SetInt("Cap1", 1); } }
public void ShareWithFriends() { if (FB.IsLoggedIn) { FB.FeedShare( string.Empty, new Uri("https://play.google.com/store/apps/details?id=com.vade.eastRunner"), " DESERT PRINCE RUNNER", " Come play this amazing game!", string.Format("{0} {1}", "My best score: ", ProtectedPrefs.GetInt("HighScore").ToString()), new Uri("http://cs627617.vk.me/v627617962/7156b/xMRVCMVBzWE.jpg"), string.Empty, this.sharCall); } }
void Start() { instance = this; check = false; if (ProtectedPrefs.HasKey("login")) { lg = ProtectedPrefs.GetInt("login"); } if (lg == 0) { login = false; } else { login = true; } }
public void DealWithFBMenu(bool isLoggedIn) { if (isLoggedIn) { UIFBLogin.SetActive(true); UIFBNotLogin.SetActive(false); login = true; ProtectedPrefs.SetInt("login", 1); } else { UIFBLogin.SetActive(false); UIFBNotLogin.SetActive(true); login = false; ProtectedPrefs.SetInt("login", 0); } }
void Start() { freecoin = false; if (ProtectedPrefs.HasKey("Coins")) { coinsc2 = ProtectedPrefs.GetInt("Coins"); } else { coinsc2 = 0; } BookCount = ProtectedPrefs.GetInt("mBook"); GoldCount = ProtectedPrefs.GetInt("mGold"); EmeraldCount = ProtectedPrefs.GetInt("mEmerald"); PipeCount = ProtectedPrefs.GetInt("mPipe"); bonuseNumber = Random.Range(0, 7); switch (bonuseNumber) { case 1: bonusName = "Take 250 coins"; break; case 2: bonusName = "Take 3 books"; break; case 3: bonusName = "Take 2 pipes"; break; case 4: bonusName = "Take 4 emeralds"; break; case 5: bonusName = "Take 2 golds"; break; default: bonusName = "Take 100 coins"; break; } }
void Start() { fb = false; if (ProtectedPrefs.HasKey("Mute")) { if (ProtectedPrefs.GetInt("Mute") == 0) { bAudio.mute = true; muteBtn.SetActive(true); uMuteBtn.SetActive(false); } else { bAudio.mute = false; uMuteBtn.SetActive(true); muteBtn.SetActive(false); } } }
void Start() { coin = 0; changeScorecolor = false; distance.color = new Color(1, 1, 1, 1); pause = false; showAd = false; al = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <AudioListener>(); al.enabled = true; if (ProtectedPrefs.HasKey("Coins")) { lcoin = ProtectedPrefs.GetInt("Coins"); } else { lcoin = 0; } GetLamp(); sl = saveButton.GetComponent <Image>(); }
void Start() { doubleCoin = false; cointimer = 0f; if (!ProtectedPrefs.HasKey("mBook")) { ProtectedPrefs.SetInt("mBook", 0); } if (!ProtectedPrefs.HasKey("mPipe")) { ProtectedPrefs.SetInt("mPipe", 0); } if (!ProtectedPrefs.HasKey("mEmerald")) { ProtectedPrefs.SetInt("mEmerald", 0); } if (!ProtectedPrefs.HasKey("mGold")) { ProtectedPrefs.SetInt("mGold", 0); } if (!ProtectedPrefs.HasKey("mKalyan")) { ProtectedPrefs.SetInt("mKalyan", 0); } if (!ProtectedPrefs.HasKey("mLamp")) { ProtectedPrefs.SetInt("mLamp", 0); } if (!ProtectedPrefs.HasKey("mRubin")) { ProtectedPrefs.SetInt("mRubin", 0); } if (!ProtectedPrefs.HasKey("mUrna")) { ProtectedPrefs.SetInt("mUrna", 0); } if (!ProtectedPrefs.HasKey("mVaza")) { ProtectedPrefs.SetInt("mVaza", 0); } }
void Awake() { if (!ProtectedPrefs.HasKey("mb")) { ProtectedPrefs.SetInt("mb", 0); } if (!ProtectedPrefs.HasKey("mp")) { ProtectedPrefs.SetInt("mp", 0); } if (!ProtectedPrefs.HasKey("me")) { ProtectedPrefs.SetInt("me", 0); } if (!ProtectedPrefs.HasKey("mg")) { ProtectedPrefs.SetInt("mg", 0); } if (!ProtectedPrefs.HasKey("mk")) { ProtectedPrefs.SetInt("mk", 0); } if (!ProtectedPrefs.HasKey("mr")) { ProtectedPrefs.SetInt("mr", 0); } if (!ProtectedPrefs.HasKey("mu")) { ProtectedPrefs.SetInt("mu", 0); } if (!ProtectedPrefs.HasKey("mv")) { ProtectedPrefs.SetInt("mv", 0); } if (!ProtectedPrefs.HasKey("cc")) { ProtectedPrefs.SetInt("cc", 0); } }
IEnumerator Background() { yield return(new WaitForSeconds(.1f)); go = new GameObject("Audio Background"); sourcebg = go.AddComponent <AudioSource>(); sourcebg.clip = backgroundClip; sourcebg.volume = 0.5f; sourcebg.loop = true; if (ProtectedPrefs.HasKey("Mute")) { if (ProtectedPrefs.GetInt("Mute") == 0) { sourcebg.mute = true; } else { sourcebg.mute = false; } } sourcebg.Play(); }
void Update() { if (lifesave == true && Controller.iDie && !loadS && !SaveMe) { showAd = false; SaveLifePanel.SetActive(true); timerl += Time.deltaTime; sl.fillAmount -= Time.deltaTime / 1.8F; if (timerl >= 1.8F) { timerl = 0; sl.fillAmount = 1; SaveLifePanel.SetActive(false); Invoke("GameOver", 0.5f); loadS = true; } } if (itemAbsorb.getLamp) { GetLamp(); } coine.text = coin.ToString(); distance.text = Controller.Distance.ToString("00000000") + "0"; if (Controller.Distance > 10 && Controller.Distance > ProtectedPrefs.GetFloat("HighScore") && !changeScorecolor) { cc += Time.deltaTime; if (cc < 1) { distance.color = new Color(1, 0, 0, 1); } else if (cc > 1 && cc < 1.5f) { distance.color = new Color(1, 1, 1, 1); } else if (cc > 1.5f && cc < 2) { distance.color = new Color(1, 0, 0, 1); } else if (cc > 2 && cc < 2.5f) { distance.color = new Color(1, 1, 1, 1); } else if (cc > 2.5f) { distance.color = new Color(1f, 0.92f, 0.016f, 1f); cc = 0; changeScorecolor = true; } } if (Controller.iDie && ProtectedPrefs.GetInt("mLamp") < 1) { MainMenuPanel.SetActive(false); Invoke("GameOver", 0.5f); } else if (Controller.iDie && ProtectedPrefs.GetInt("mLamp") > 0 && !lifesave) { MainMenuPanel.SetActive(false); lifesave = true; loadS = false; } }
public void Customize() { if (ProtectedPrefs.GetInt("Player") == 1) { characters[0].SetActive(true); characters[1].SetActive(false); characters[2].SetActive(false); characters[3].SetActive(false); bear.SetActive(false); jacket[0].SetActive(false); jacket[1].SetActive(false); belt[0].SetActive(false); belt[1].SetActive(false); belt[2].SetActive(false); MaskAnonim.SetActive(false); } else if (ProtectedPrefs.GetInt("Player") == 2) { characters[0].SetActive(false); characters[1].SetActive(true); characters[2].SetActive(false); characters[3].SetActive(false); bear.SetActive(true); jacket[0].SetActive(false); jacket[1].SetActive(true); belt[0].SetActive(true); belt[1].SetActive(false); belt[2].SetActive(false); MaskAnonim.SetActive(false); } else if (ProtectedPrefs.GetInt("Player") == 3) { characters[0].SetActive(false); characters[1].SetActive(false); characters[2].SetActive(true); characters[3].SetActive(false); bear.SetActive(false); jacket[0].SetActive(false); jacket[1].SetActive(false); belt[0].SetActive(false); belt[1].SetActive(true); belt[2].SetActive(false); MaskAnonim.SetActive(false); } else if (ProtectedPrefs.GetInt("Player") == 4) { characters[0].SetActive(false); characters[1].SetActive(false); characters[2].SetActive(false); characters[3].SetActive(true); bear.SetActive(false); jacket[0].SetActive(true); jacket[1].SetActive(false); belt[0].SetActive(false); belt[1].SetActive(false); belt[2].SetActive(true); MaskAnonim.SetActive(true); ocular.SetActive(false); } else { characters[0].SetActive(true); characters[1].SetActive(false); characters[2].SetActive(false); characters[3].SetActive(false); bear.SetActive(false); jacket[0].SetActive(false); jacket[1].SetActive(false); belt[0].SetActive(false); belt[1].SetActive(false); belt[2].SetActive(false); MaskAnonim.SetActive(false); } if (ProtectedPrefs.GetInt("Helmet") == 1) { if (ProtectedPrefs.GetInt("Player") != 3) { caps[0].SetActive(true); caps[1].SetActive(false); caps[2].SetActive(false); caps[3].SetActive(false); capChar3.SetActive(false); } else { caps[0].SetActive(false); caps[1].SetActive(false); caps[2].SetActive(false); caps[3].SetActive(false); capChar3.SetActive(true); } } else if (ProtectedPrefs.GetInt("Helmet") == 2) { caps[0].SetActive(false); caps[1].SetActive(true); caps[2].SetActive(false); caps[3].SetActive(false); capChar3.SetActive(false); } else if (ProtectedPrefs.GetInt("Helmet") == 3) { caps[0].SetActive(false); caps[1].SetActive(false); caps[2].SetActive(true); caps[3].SetActive(false); capChar3.SetActive(false); } else if (ProtectedPrefs.GetInt("Helmet") == 4) { caps[0].SetActive(false); caps[1].SetActive(false); caps[2].SetActive(false); caps[3].SetActive(true); capChar3.SetActive(false); } else { if (ProtectedPrefs.GetInt("Player") != 3) { caps[0].SetActive(true); caps[1].SetActive(false); caps[2].SetActive(false); caps[3].SetActive(false); capChar3.SetActive(false); } else { caps[0].SetActive(false); caps[1].SetActive(false); caps[2].SetActive(false); caps[3].SetActive(false); capChar3.SetActive(true); } } if (ProtectedPrefs.GetInt("Whinger") == 1) { knifes[0].SetActive(true); knifes[1].SetActive(false); knifes[2].SetActive(false); knifes[3].SetActive(false); knifes[4].SetActive(false); } else if (ProtectedPrefs.GetInt("Whinger") == 2) { knifes[0].SetActive(false); knifes[1].SetActive(true); knifes[2].SetActive(false); knifes[3].SetActive(false); knifes[4].SetActive(false); } else if (ProtectedPrefs.GetInt("Whinger") == 3) { knifes[0].SetActive(false); knifes[1].SetActive(false); knifes[2].SetActive(true); knifes[3].SetActive(false); knifes[4].SetActive(false); } else if (ProtectedPrefs.GetInt("Whinger") == 4) { knifes[0].SetActive(false); knifes[1].SetActive(false); knifes[2].SetActive(false); knifes[3].SetActive(true); knifes[4].SetActive(false); } else if (ProtectedPrefs.GetInt("Whinger") == 5) { knifes[0].SetActive(false); knifes[1].SetActive(false); knifes[2].SetActive(false); knifes[3].SetActive(false); knifes[4].SetActive(true); } else { knifes[0].SetActive(false); knifes[1].SetActive(false); knifes[2].SetActive(false); knifes[3].SetActive(false); knifes[4].SetActive(false); } if (ProtectedPrefs.GetInt("ClockStart") == 1) { clock.SetActive(true); } else { clock.SetActive(false); } if (ProtectedPrefs.GetInt("AkStart") == 1) { ak47.SetActive(true); } else { ak47.SetActive(false); } if (ProtectedPrefs.GetInt("SpectatesStart") == 1 && ProtectedPrefs.GetInt("Player") != 4) { ocular.SetActive(true); } else { ocular.SetActive(false); } }
void Start() { bc = ProtectedPrefs.GetInt("mBook"); pc = ProtectedPrefs.GetInt("mPipe"); ec = ProtectedPrefs.GetInt("mEmerald"); gc = ProtectedPrefs.GetInt("mGold"); kc = ProtectedPrefs.GetInt("mKalyan"); rc = ProtectedPrefs.GetInt("mRubin"); uc = ProtectedPrefs.GetInt("mUrna"); vc = ProtectedPrefs.GetInt("mVaza"); if (bc >= 230) { book.text = "compleit"; if (ProtectedPrefs.GetInt("mb") == 0) { ProtectedPrefs.SetInt("mb", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 10000); } } else { book.text = ProtectedPrefs.GetInt("mBook").ToString() + " / 230"; } if (pc >= 300) { pipe.text = "compleit"; if (ProtectedPrefs.GetInt("mp") == 0) { ProtectedPrefs.SetInt("mp", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 15000); } } else { pipe.text = ProtectedPrefs.GetInt("mPipe").ToString() + " / 300"; } if (ec >= 350) { emerald.text = "compleit"; if (ProtectedPrefs.GetInt("me") == 0) { ProtectedPrefs.SetInt("me", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 25000); } } else { emerald.text = ProtectedPrefs.GetInt("mEmerald").ToString() + " / 350"; } if (gc >= 500) { gold.text = "compleit"; if (ProtectedPrefs.GetInt("mg") == 0) { ProtectedPrefs.SetInt("mg", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 50000); } } else { gold.text = ProtectedPrefs.GetInt("mGold").ToString() + " / 500"; } if (kc >= 550) { kalyan.text = "compleit"; if (ProtectedPrefs.GetInt("mk") == 0) { ProtectedPrefs.SetInt("mk", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 70000); } } else { kalyan.text = ProtectedPrefs.GetInt("mKalyan").ToString() + " / 550"; } if (rc >= 650) { rubine.text = "compleit"; if (ProtectedPrefs.GetInt("mr") == 0) { ProtectedPrefs.SetInt("mr", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 100000); } } else { rubine.text = ProtectedPrefs.GetInt("mRubin").ToString() + " / 650"; } if (uc >= 750) { urna.text = "compleit"; if (ProtectedPrefs.GetInt("mu") == 0) { ProtectedPrefs.SetInt("mu", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 180000); } } else { urna.text = ProtectedPrefs.GetInt("mUrna").ToString() + " / 750"; } if (vc >= 800) { vaze.text = "compleit"; if (ProtectedPrefs.GetInt("mv") == 0) { ProtectedPrefs.SetInt("mv", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 250000); } } else { vaze.text = ProtectedPrefs.GetInt("mVaza").ToString() + " / 800"; } if (ProtectedPrefs.GetInt("Coins") >= 500000) { coincollect.text = "compleit"; if (ProtectedPrefs.GetInt("cc") == 0) { ProtectedPrefs.SetInt("cc", 1); ProtectedPrefs.SetInt("Coins", ProtectedPrefs.GetInt("Coins") + 350000); } } else { coincollect.text = "none"; } }
public void Mute() { ProtectedPrefs.SetInt("Mute", 0); bAudio.mute = true; }
public void uMute() { ProtectedPrefs.SetInt("Mute", 1); bAudio.mute = false; }
public void Shop() { coins.text = ProtectedPrefs.GetInt("Coins").ToString(); }
void Update() { if (Input.GetKey(KeyCode.Escape)) { mainPanel.SetActive(false); quitPanel.SetActive(true); fbWindow.SetActive(false); fbNotLog.SetActive(false); leaderBoard.SetActive(false); storeWindow.SetActive(false); cameraSecond.SetActive(false); iapPanel.SetActive(false); } if (!Facebook.Unity.FBManager.login) { fbWindow.SetActive(false); } else { fbNotLog.SetActive(false); } if (ProtectedPrefs.GetInt("bunner") == 0) { tnoAds.text = "999000"; } else { tnoAds.text = "Full!"; } if (ProtectedPrefs.HasKey("Coins")) { coins.text = ProtectedPrefs.GetInt("Coins").ToString(); } if (ProtectedPrefs.HasKey("m_LvL")) { magLevel = ProtectedPrefs.GetInt("m_LvL"); } else { magLevel = 0; magnetP.fillAmount = 0f; tMagnit.text = "750"; } if (magLevel == 1) { magnetP.fillAmount = 0.2f; tMagnit.text = "2 500"; } else if (magLevel == 2) { magnetP.fillAmount = 0.4f; tMagnit.text = "5 000"; } else if (magLevel == 3) { magnetP.fillAmount = 0.6f; tMagnit.text = "7 500"; } else if (magLevel == 4) { magnetP.fillAmount = 0.8f; tMagnit.text = "10 000"; } else if (magLevel == 5) { magnetP.fillAmount = 1f; tMagnit.text = "Full!"; } if (ProtectedPrefs.HasKey("b_LvL")) { botLevel = ProtectedPrefs.GetInt("b_LvL"); } else { botLevel = 0; ShouseP.fillAmount = 0f; tShouses.text = "750"; } if (botLevel == 1) { ShouseP.fillAmount = 0.2f; tShouses.text = "2 500"; } else if (botLevel == 2) { ShouseP.fillAmount = 0.4f; tShouses.text = "5 000"; } else if (botLevel == 3) { ShouseP.fillAmount = 0.6f; tShouses.text = "7 500"; } else if (botLevel == 4) { ShouseP.fillAmount = 0.8f; tShouses.text = "10 000"; } else if (botLevel == 5) { ShouseP.fillAmount = 1f; tShouses.text = "Full!"; } if (ProtectedPrefs.HasKey("k_LvL")) { koverLevel = ProtectedPrefs.GetInt("k_LvL"); } else { koverLevel = 0; KoverP.fillAmount = 0f; tKover.text = "750"; } if (koverLevel == 1) { KoverP.fillAmount = 0.2f; tKover.text = "2 500"; } else if (koverLevel == 2) { KoverP.fillAmount = 0.4f; tKover.text = "5 000"; } else if (koverLevel == 3) { KoverP.fillAmount = 0.6f; tKover.text = "7 500"; } else if (koverLevel == 4) { KoverP.fillAmount = 0.8f; tKover.text = "10 000"; } else if (koverLevel == 5) { KoverP.fillAmount = 1f; tKover.text = "Full!"; } if (ProtectedPrefs.HasKey("d_LvL")) { dcLevel = ProtectedPrefs.GetInt("d_LvL"); } else { dcLevel = 0; dcP.fillAmount = 0f; tdoublecoin.text = "750"; } if (dcLevel == 1) { dcP.fillAmount = 0.2f; tdoublecoin.text = "2 500"; } else if (dcLevel == 2) { dcP.fillAmount = 0.4f; tdoublecoin.text = "5 000"; } else if (dcLevel == 3) { dcP.fillAmount = 0.6f; tdoublecoin.text = "7 500"; } else if (dcLevel == 4) { dcP.fillAmount = 0.8f; tdoublecoin.text = "10 000"; } else if (dcLevel == 5) { dcP.fillAmount = 1f; tdoublecoin.text = "Full!"; } }