public void InitData(EmailPop p, EmailData d, int i) { index = i; pop = p; data = d; SetReadState(d.isRead); icon.spriteName = data.icon; name.text = data.name; date.text = data.date; from.text = data.from; state.MakePixelPerfect(); }
public void MailClick() { if (isShow[(int)PopType.Email] != true) { GameObject obj = Instantiate(mailPop); obj.SetActive(true); EmailPop pop = obj.GetComponent <EmailPop>(); pop.InitData(); pop.transform.parent = this.transform; pop.transform.localScale = Vector3.one; isShow[(int)PopType.Email] = true; } }
public void OpenPop(EmailPop p) { pop = p; }