public void AddListRows(XsollaTranslations pTranslation, XsollaHistoryList pList) { foreach (XsollaHistoryItem item in pList.GetItemsList()) { AddHistoryRow(pTranslation, item, mLimit % 2 != 0, false); mLimit++; } }
public void InitScreen(XsollaTranslations pTranslation, XsollaHistoryList pList, String pVirtualCurrName) { mVirtCurrName = pVirtualCurrName; Logger.Log("Init history screen"); mTitle.text = pTranslation.Get("balance_history_page_title"); mBtnContinue.GetComponent <Text>().text = pTranslation.Get("balance_back_button") + " >"; mBtnContinue.GetComponent <Button>().onClick.AddListener(delegate { Logger.Log("Destroy history"); Destroy(this.gameObject); }); AddHistoryRow(pTranslation, null, false, true); foreach (XsollaHistoryItem item in pList.GetItemsList()) { AddHistoryRow(pTranslation, item, mLimit % 2 != 0, false); mLimit++; } isRefresh = false; }