Example #1
0
    void VerificaQualFala()
    {
        ChaveDeTexto inutil = ChaveDeTexto.bomDia;

        conversa = StringParaEnum.SetarConversaOriginal(falas[indiceDaFala], ref inutil);
        // conversa é uma variavel protected da classe pai
        indiceDaFala++;
        if (indiceDaFala >= falas.Length)
        {
            indiceDaFala = 0;
        }
    }
Example #2
0
        public void SetarConversaOriginal()
        {
            if (chaveDaConversaGambiarraString != "")
            {
                try
                {
                    chaveDaConversa = (ChaveDeTexto)System.Enum.Parse(typeof(ChaveDeTexto), chaveDaConversaGambiarraString);
                }
                catch (System.ArgumentException e)
                {
                    Debug.LogError("string para texto invalida no enum \n" + e.StackTrace);
                }
            }

            conversa = BancoDeTextos.RetornaListaDeTextoDoIdioma(chaveDaConversa).ToArray();
        }
 public MessageVsUiText(UnityEngine.UI.Text tt, ChaveDeTexto c, int indice)
 {
     uiText          = tt;
     messageKey      = c;
     indiceDoMessage = indice;
 }
Example #4
0
 public void MudaChaveDaConversa(ChaveDeTexto chave)
 {
     conversa = BancoDeTextos.RetornaListaDeTextoDoIdioma(chave).ToArray();
 }
 public static string RetornaFraseDoIdioma(ChaveDeTexto chave)
 {
     return(falacoesComChave[SaveDatesManager.s.ChosenLanguage][chave][0]);
 }
 public static List <string> RetornaListaDeTextoDoIdioma(ChaveDeTexto chave)
 {
     return(falacoesComChave[SaveDatesManager.s.ChosenLanguage][chave]);
 }
Example #7
0
 public static string RetornaFraseDoIdioma(ChaveDeTexto chave)
 {
     return(falacoesComChave[linguaChave][chave][0]);
 }
Example #8
0
 public static List <string> RetornaListaDeTextoDoIdioma(ChaveDeTexto chave)
 {
     return(falacoesComChave[linguaChave][chave]);
 }