Beispiel #1
0
 private void OnNewMailMsgSyn(PacketBase msg)
 {
     if (msg.code == 0)
     {
         NewMailMsgSyn response = NetSerilizer.DeSerialize <NewMailMsgSyn>(msg.data);
         Game.Instance.SetNewMailMsg(response);
     }
 }
Beispiel #2
0
 public void SetNewMailMsg(NewMailMsgSyn response)
 {
     Mails.AddRange(response.mails);
     EventDispatcher.DispatchEvent(MessageCommand.Update_Mail);
 }