public void setSyllable(EnumsGame.Syllables s) { syllable = s; if (text == null) { text = transform.FindChild("Text").gameObject.GetComponent <Text>(); } text.text = GameSettings.enum2SyllabeText(s); }
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); }
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); }