示例#1
0
 void Update()
 {
     if (mCurrentContact != null && GlobalStatus.HasMessages(mCurrentContact.ID))
     {
         GlobalStatus.SetSeenMessages(mCurrentContact.ID);
         ChatManager.FetchChat(mCurrentContact.ID);
     }
 }
示例#2
0
 private void UpdateState()
 {
     if (mContact == null)
     {
         mImage.enabled = GlobalStatus.HasNewMessage;
     }
     else
     {
         mImage.enabled = GlobalStatus.HasMessages(mContact.ID);
     }
 }