Beispiel #1
0
 public void setSyllable(EnumsGame.Syllables s)
 {
     syllable = s;
     if (text == null)
     {
         text = transform.FindChild("Text").gameObject.GetComponent <Text>();
     }
     text.text = GameSettings.enum2SyllabeText(s);
 }
Beispiel #2
0
    public static EnumsGame.Syllables syllable2enum(string syl)
    {
        EnumsGame.Syllables retorno = 0;

        for (int i = 0; i < syllables.Length; i++)
        {
            if (syllables_str[i].Equals(syl))
            {
                retorno = syllables[i];
            }
        }

        return(retorno);
    }
Beispiel #3
0
    public static string enum2SyllabeText(EnumsGame.Syllables syl)
    {
        string retorno = "";

        for (int i = 0; i < syllables.Length; i++)
        {
            if (syllables[i].Equals(syl))
            {
                retorno = syllables_str[i];
            }
        }

        return(retorno);
    }