コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: MainUI.cs プロジェクト: ChestnutGames/boxing
 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;
     }
 }
コード例 #3
0
 public void OpenPop(EmailPop p)
 {
     pop = p;
 }