public void changeFavorite() { print("controller"); oneword.changeFavorite(); print(oneword.getFavorite()); myview.addFavoriteAnimation(oneword.getFavorite(), oneword.getEnSpelling()); }
public void changePaper(word myword) { string mykeyname = myword.getEnSpelling(); string mykeytrimname = mykeyname.Replace(" ", ""); string mysymbolname = myword.getSymbol(); mysymbol.sprite = GetSpriteByName(mysymbolname); myspelling.text = myword.getSpelling(); myEN_FR.sprite = getVersionSprite(myword.getVersion()); myfavorite_click.sprite = getFavoriteSprite(myword.getFavorite()); AudioClip nowwordAudio = Resources.Load <AudioClip>("Signs" + mykeytrimname); }