void OpenInvadeResult(NDictionary args) { int idx = args.Value <int>("index"); var list = mailPackage.GetMailList(); if (idx >= list.Count) { return; } FightingInfo res = list[idx].fightingInfo; StartCoroutine(PlayInvadeAnimation(res)); }
public override void DrawCell(int index, int count = 0) { mIndex = index; var list = mailPackage.GetMailList(); NMessageInfo info = list[index]; if (info.type == 2) { ShowInvadeWarning(info); } else if (info.type == 3) { ShowInvadeResult(info); } if (info.isRead == false) { pointGo.SetActive(true); } else { pointGo.SetActive(false); } }
void RefreshView() { tableView.DataCount = mailPackage.GetMailList().Count; tableView.TableChange(); }