예제 #1
0
    void Start()
    {
        string nome = Sistema.instancia.nometema;

        if (PlayerPrefs.GetInt("Jogou") == 0)
        {
            PlayerPrefs.SetInt("Jogou", 1);
        }

        if (nome.Equals("Bagian 1"))
        {
            AddPerguntas.getPerguntas_exatas().Clear();
            AddPerguntas.Add_exatas();
        }
        else if (nome.Equals("Bagian 2"))
        {
            AddPerguntas.getPerguntas_humanas().Clear();
            AddPerguntas.Add_humanas();
        }
        else if (nome.Equals("Bagian 3"))
        {
            AddPerguntas.getPerguntas_bio().Clear();
            AddPerguntas.Add_bio();
        }
        else if (nome.Equals("Bagian 4"))
        {
            AddPerguntas.getPerguntas_bagian4().Clear();
            AddPerguntas.Add_bagian4();
        }

        pontuacao.text = Sistema.instancia.GetPontuacao().ToString();
        record.text    = Sistema.instancia.GetRecord().ToString();

        if (Sistema.instancia.newrecord == 1)
        {
            StartCoroutine(GoNewRecord());
            Sistema.instancia.newrecord = 0;
        }

        StartCoroutine(GoSetaNovamente());
    }
예제 #2
0
    void Start()
    {
        txtPulo.text   = (PlayerPrefs.GetInt("Pulos").ToString());
        txtChance.text = (PlayerPrefs.GetInt("Chance").ToString());
        life           = PlayerPrefs.GetInt("Vida");
        UiOn();
        skipped_questions.Clear();
        exit.SetActive(false);
        string name = "";

        name = Sistema.instancia.GetNomeTema();

        if (name.Equals("EXATAS"))
        {
            exatas_list = AddPerguntas.getPerguntas_exatas();
            MisturarArray(exatas_list);
            theme_index      = 0;
            txtPergunta.text = exatas_list[i].GetTexto();
            txtA.text        = exatas_list[i].GetQ1();
            txtB.text        = exatas_list[i].GetQ2();
            txtC.text        = exatas_list[i].GetQ3();
            txtD.text        = exatas_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
        else if (name.Equals("HUMANAS"))
        {
            hist_list = AddPerguntas.getPerguntas_humanas();
            MisturarArray(hist_list);
            theme_index      = 1;
            txtPergunta.text = hist_list[i].GetTexto();
            txtA.text        = hist_list[i].GetQ1();
            txtB.text        = hist_list[i].GetQ2();
            txtC.text        = hist_list[i].GetQ3();
            txtD.text        = hist_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
        else if (name.Equals("BIOLÓGICAS"))
        {
            bio_list = AddPerguntas.getPerguntas_bio();
            MisturarArray(bio_list);
            theme_index      = 2;
            txtPergunta.text = bio_list[i].GetTexto();
            txtA.text        = bio_list[i].GetQ1();
            txtB.text        = bio_list[i].GetQ2();
            txtC.text        = bio_list[i].GetQ3();
            txtD.text        = bio_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
        else if (name.Equals("GERAL"))
        {
            all_list = AddPerguntas.getPerguntas_all();
            MisturarArray(all_list);
            theme_index      = 3;
            txtPergunta.text = all_list[i].GetTexto();
            txtA.text        = all_list[i].GetQ1();
            txtB.text        = all_list[i].GetQ2();
            txtC.text        = all_list[i].GetQ3();
            txtD.text        = all_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
    }
예제 #3
0
    void Start()
    {
        txtPulo.text   = (PlayerPrefs.GetInt("Pulos").ToString());
        txtChance.text = (PlayerPrefs.GetInt("Chance").ToString());
        life           = PlayerPrefs.GetInt("Vida");
        UiOn();
        skipped_questions.Clear();
        exit.SetActive(false);
        string name = "";

        name = Sistema.instancia.GetNomeTema();

        if (name.Equals("Bagian Papua"))
        {
            exatas_list = AddPerguntas.getPerguntas_exatas();
            MisturarArray(exatas_list);
            theme_index      = 0;
            txtPergunta.text = exatas_list[i].GetTexto();
            txtA.text        = exatas_list[i].GetQ1();
            txtB.text        = exatas_list[i].GetQ2();
            txtC.text        = exatas_list[i].GetQ3();
            txtD.text        = exatas_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
        else if (name.Equals("Bagian Maluku"))
        {
            hist_list = AddPerguntas.getPerguntas_humanas();
            MisturarArray(hist_list);
            theme_index      = 1;
            txtPergunta.text = hist_list[i].GetTexto();
            txtA.text        = hist_list[i].GetQ1();
            txtB.text        = hist_list[i].GetQ2();
            txtC.text        = hist_list[i].GetQ3();
            txtD.text        = hist_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
        else if (name.Equals("Bagian Sulawesi Tengah"))
        {
            bio_list = AddPerguntas.getPerguntas_bio();
            MisturarArray(bio_list);
            theme_index      = 2;
            txtPergunta.text = bio_list[i].GetTexto();
            txtA.text        = bio_list[i].GetQ1();
            txtB.text        = bio_list[i].GetQ2();
            txtC.text        = bio_list[i].GetQ3();
            txtD.text        = bio_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
        else if (name.Equals("Bagian Kalimantan Barat"))
        {
            bagian4_list = AddPerguntas.getPerguntas_bagian4();
            MisturarArray(bagian4_list);
            theme_index      = 3;
            txtPergunta.text = bagian4_list[i].GetTexto();
            txtA.text        = bagian4_list[i].GetQ1();
            txtB.text        = bagian4_list[i].GetQ2();
            txtC.text        = bagian4_list[i].GetQ3();
            txtD.text        = bagian4_list[i].GetQ4();
            txtLife.text     = ("" + life);
        }
    }