コード例 #1
0
    void Start()
    {
        #if UNITY_ANDROID
            Screen.orientation = ScreenOrientation.LandscapeLeft;
            //Screen.fullScreen = false;
        #endif
        //TirarBarras();
        AtualizarVolume();

        if (Informacoes.GetStatus() == INICIO)
        {
            InicializarJogo();
        }
        else
        {
            PegarInfosSalvas();
            PegarProximaQuestao();
            if(Informacoes.GetStatus() == STATUSOPCOES){
                questao_x_de_y--;
            }
        }
         Debug.Log("qst" + questao_x_de_y);
          Debug.Log("nvl" + nivel_atual);

         if (VerificarFim() == 0){
            AtualizarPerguntaTela();
        }
        
    }
コード例 #2
0
    private void PegarInfosSalvas()
    {
        if (Informacoes.GetStatus() == STATUSOPCOES || Informacoes.GetStatus() == PROXPALAVRA)
        {
            questao_x_de_y = Informacoes.GetNumeroQuestao();
        }
        else
        {
            questao_x_de_y = -1;
        }
        pular_agora                 = NAO;
        quantidade_facil            = Informacoes.GetQuantidadeFacil();
        quantidade_medio            = Informacoes.GetQuantidadeMedio();
        quantidade_dificil          = Informacoes.GetQuantidadeDificil();
        nivel_atual                 = Informacoes.GetNivel();
        pontuacao                   = Informacoes.GetPontos();
        perguntas_facil             = Informacoes.GetPerguntasFacil();
        respostas_facil             = Informacoes.GetRespostasFacil();
        respostas_possiveis_facil   = Informacoes.GetRespostasPossiveisFacil();
        dicas_facil                 = Informacoes.GetDicasFacil();
        perguntas_medio             = Informacoes.GetPerguntasMedio();
        respostas_medio             = Informacoes.GetRespostasMedio();
        respostas_possiveis_medio   = Informacoes.GetRespostasPossiveisMedio();
        dicas_medio                 = Informacoes.GetDicasMedio();
        perguntas_dificil           = Informacoes.GetPerguntasDificil();
        respostas_dificil           = Informacoes.GetRespostasDificil();
        respostas_possiveis_dificil = Informacoes.GetRespostasPossiveisDificil();
        dicas_dificil               = Informacoes.GetDicasDificil();
        selecionou5050              = Informacoes.GetStatus5050();
        selecionou_pular            = Informacoes.GetStatusPular();
        volume_efeitos              = Informacoes.GetValueEfeitos();
        volume_musica               = Informacoes.GetValueEfeitos();
        volume_texto                = Informacoes.GetValueLeituraTexto();

        audios_perguntas    = Informacoes.GetAudiosPerguntas();
        audios_alternativas = Informacoes.GetAudiosAlternativas();
        audios_dicas        = Informacoes.GetAudiosDicas();
    }
コード例 #3
0
    void Start()
    {
        #if UNITY_ANDROID
        Screen.orientation = ScreenOrientation.LandscapeLeft;
        //Screen.fullScreen = false;
        #endif
        //TirarBarras();
        //AtualizarVolume();
        if (Informacoes.GetStatus() == INICIO)
        {
            InicializarJogo();
        }
        else
        {
            PegarInfosSalvas();

            PegarProximaQuestao();
            if (Informacoes.GetStatus() == STATUSOPCOES)
            {
                questao_x_de_y--;
            }
        }
        AtualizarPerguntaTela();
    }