Пример #1
0
        void Start()
        {
            if (PlayerPrefs.HasKey("PapuaScore"))
            {
                scoreP.text = PlayerPrefs.GetInt("PapuaScore").ToString("#,##0");
                timeP.text  = GameUtils.TimeFormat(PlayerPrefs.GetInt("PapuaTime"));
            }
            if (PlayerPrefs.HasKey("MalukuScore"))
            {
                scoreM.text = PlayerPrefs.GetInt("MalukuScore").ToString("#,##0");
                timeM.text  = GameUtils.TimeFormat(PlayerPrefs.GetInt("MalukuTime"));
            }
            if (PlayerPrefs.HasKey("SulawesiScore"))
            {
                scoreS.text = PlayerPrefs.GetInt("SulawesiScore").ToString("#,##0");
                timeS.text  = GameUtils.TimeFormat(PlayerPrefs.GetInt("SulawesiTime"));
            }
            if (PlayerPrefs.HasKey("KalimantanScore"))
            {
                scoreK.text = PlayerPrefs.GetInt("KalimantanScore").ToString("#,##0");
                timeK.text  = GameUtils.TimeFormat(PlayerPrefs.GetInt("KalimantanTime"));
            }
            pular.text   = PlayerPrefs.GetInt("Pulos").ToString();
            porcent.text = PlayerPrefs.GetInt("Chance").ToString();
            reset.text   = PlayerPrefs.GetInt("Reset").ToString();

            if (PlayerPrefs.GetInt("Reset") > 0)
            {
                botao[2].GetComponent <Selectable>().interactable = true;
            }
            else
            {
                botao[2].GetComponent <Selectable>().interactable = false;
            }

            dele.SetActive(false);
            Color txtoff;

            ColorUtility.TryParseHtmlString("#C8C8C880", out txtoff);
            rese.SetActive(false);
            SetarValores();
            clicker = 0;
        }
Пример #2
0
 public void SetTime(int seconds)
 {
     TimeValue.text = GameUtils.TimeFormat(seconds);
 }