Example #1
0
 public void OnClickReadBtn()
 {
     if (mail_info.IsExistDetail == true)
     {
         Popup.Instance.Show(ePopupMode.MailDetail, MailManager.Instance.GetMail(mail_info.MailIdx).Detail, null);
     }
     else
     {
         C2G.MailRead packet = new C2G.MailRead();
         packet.mail_idx        = mail_info.MailIdx;
         packet.is_read         = mail_info.IsRead;
         packet.is_exist_reward = mail_info.ExistReward;
         Network.GameServer.JsonAsync <C2G.MailRead, C2G.MailReadAck>(packet, OnMailReadHandler);
     }
 }
Example #2
0
 public void OnMailReadHandler(C2G.MailRead send, C2G.MailReadAck recv)
 {
     MailManager.Instance.SetDetail(send.mail_idx, recv.detail_info);
     Network.Instance.SetUnreadMail(MailManager.Instance.GetUnreadState());
     Popup.Instance.Show(ePopupMode.MailDetail, recv.detail_info, null);
 }