public void Refresh() { if (_mailInfo.rewardList.Count == 0) { scrollRectTran.sizeDelta = new Vector2(scrollRectTran.sizeDelta.x, contentBgTran.sizeDelta.y); } contentButton.SetMailInfo(_mailInfo, true); }
public void OnResetItemHandler(GameObject go, int index) { MailContentButton btn = go.GetComponent <MailContentButton>(); btn.SetMailInfo(MailProxy.instance.CurrentMailInfoList[index], false); }