public void OnPortugueseTextFieldChange() { if (model != null) { GameObject cardUI = model.getSelectedCardUI(); CardHolder ch = cardUI.GetComponent <CardHolder>(); ch.setPortugueseText(portugueseText.text); view.updateCardContainer(); } }
public void updatePorEnglText() { GameObject selectedCardUI = model.getSelectedCardUI(); CardHolder ch = selectedCardUI.GetComponent <CardHolder>(); portugueseText.text = ch.getPortugueseText(); englishText.text = ch.getEnglishText(); }