public bool Equals(ILivingLetterData data) { LL_LetterData other = data as LL_LetterData; if (other == null) { return(false); } return(other.Data.Id == Data.Id && other.Position == Position); }
/// <summary> /// Return list of letter data for any letter of param word. /// </summary> public static List <LL_LetterData> ExtractLetterDataFromArabicWord(string arabicWord) { var db = AppManager.I.DB.StaticDatabase; var lettersIds = ExtractLettersFromArabicWord(arabicWord, db); var returnList = new List <LL_LetterData>(); foreach (var id in lettersIds) { var llLetterData = new LL_LetterData((Db.LetterData)db.GetLetterTable().GetValue(id)); returnList.Add(llLetterData); } return(returnList); }
void RandomLetter() { letterData = AppManager.I.Teacher.GetRandomTestLetterLL(); //Debug.Log(letterData.Key); SetText(letterData.TextForLivingLetter); }