Example #1
0
    // Use this for initialization
    void Start()
    {
        temaScene = FindObjectOfType(typeof(temaScene)) as temaScene;

        idTemaTxt.text = idTema.ToString();

        estrelas();

        SC = FindObjectOfType(typeof(soundController)) as soundController;
    }
Example #2
0
    void Start()
    {
        notaFinal = PlayerPrefs.GetInt("notaFinal_" + idTema.ToString());

        temaScene = FindObjectOfType(typeof(temaScene)) as temaScene;

        idTemaTXT.text = idTema.ToString();

        estrelas(); // CHAMA O MÉTODO ESTRELAS QUE CALCULA QUANTAS ESTRELAS GANHAMOS
    }
    // Use this for initialization
    void Start()
    {
        button = GetComponent <Button>();

        temaScene = FindObjectOfType <temaScene>();

        txtTema.text = idTema.ToString();

        notaFinal = PlayerPrefs.GetFloat("notaFinal_" + idTema);
        print("notaFinal" + notaFinal + " - idtema" + idTema);
        estrelas();

        VerificarNotaMinima();
        SoundController = FindObjectOfType <soundController>();
    }