コード例 #1
0
 private void Start()
 {
     soundController = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;
     carregarPreferencias();
     painel1.SetActive(true);
     painel2.SetActive(false);
 }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        soundCotroller = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;

        idTema          = PlayerPrefs.GetInt("idTema");
        notaMin1Estrela = PlayerPrefs.GetInt("notaMin1Estrela");
        notaMin2Estrela = PlayerPrefs.GetInt("notaMin2Estrela");

        nomeTemaTxt.text = PlayerPrefs.GetString("nomeTema");


        barraTempo.SetActive(false);


        if (perguntasComIMG == true)
        {
            montarListaPerguntasIMG();
        }
        else
        {
            montarListaPerguntas();
        }

        progressaoBarra();
        controleBarraTempo();

        paineis[0].SetActive(true);
        paineis[1].SetActive(false);
    }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        soundController = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;
        fade            = FindObjectOfType(typeof(fade)) as fade;


        onOfButtonsPainel();
    }
コード例 #4
0
    // Start is called before the first frame update
    void Start()
    {
        soundController = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;
        notaFinal       = PlayerPrefs.GetInt("notaFinal_" + idTema.ToString());
        temaScene       = FindObjectOfType(typeof(TemaScene)) as TemaScene;
        idTemaTxt.text  = idTema.ToString();
        Estrelas();

        btnTema = GetComponent <Button>();

        verificarNotaMinima();
    }
コード例 #5
0
    private void Start()
    {
        fade = FindObjectOfType(typeof(fade)) as fade;

        soundController = FindObjectOfType(typeof(soundCotroller)) as soundCotroller;
    }