void Start() { PlayerPrefs.SetString("SummonStats", "Idling"); //PlayerPrefs.SetString ("PLAY_TUTORIAL", "TRUE"); Debug.Log(PlayerPrefs.GetString("PLAY_TUTORIAL")); tutorHitung = PlayerPrefs.GetInt("tutorhitung"); if (PlayerPrefs.GetInt("Catched") == 0 || !PlayerPrefs.HasKey("Catched")) { Summonsd.SetActive(true); if (PlayerPrefs.GetString("PLAY_TUTORIAL") == "TRUE") { if (PlayerPrefs.HasKey("tutorhitung")) { tutorHitung = PlayerPrefs.GetInt("tutorhitung"); if (tutorHitung > 3) { tutorHitung = 3; PlayerPrefs.SetString("SummonTutor", "UDAH"); SceneManagerHelper.StopTutorial(); //next.SetActive(true); firstTimerSummonScript.position = 3; } } SceneManagerHelper.LoadTutorial("Summon"); //firstTimerSummonScript.gameObject.SetActive (true); } else { firstTimerSummonScript.gameObject.SetActive(false); } StartCoroutine(updateData()); OnClickCommon(); Gold.text = PlayerPrefs.GetString(Link.GOLD); Crystal.text = PlayerPrefs.GetString("Crystal"); Common.text = PlayerPrefs.GetString(Link.COMMONGem); Rare.text = PlayerPrefs.GetString(Link.RAREGem); Legendary.text = PlayerPrefs.GetString(Link.LEGENDARYGem); //SoulStone.text = PlayerPrefs.GetString (Link.SOUL_STONE); icon.sprite = CommonIcon; jenis = "COMMON"; header.text = "SUMMON " + jenis; Debug.Log(PlayerPrefs.GetString(Link.GOLD) + "/" + PlayerPrefs.GetString(Link.COMMONGem)); if (int.Parse(PlayerPrefs.GetString(Link.GOLD)) >= 20 && int.Parse(PlayerPrefs.GetString(Link.COMMONGem)) >= 1) { statusAktif.SetActive(false); } else { statusAktif.SetActive(true); } } else { OKCatch.onClick.AddListener(Unload); if (PlayerPrefs.GetInt("Rarity") == 0) { jenis = "COMMON"; } else if (PlayerPrefs.GetInt("Rarity") == 1) { jenis = "RARE"; } else { jenis = "LEGENDARY"; } OnClickSummoned(); } }