示例#1
0
 void OnApplyMsg(GameObject go)
 {
     GlobalAudioMgr.Instance.PlayOrdianryMusic(Audio.OrdianryMusic.m_BtnMusic);
     m_ListType = FriendListType.ApplyList;
     SetChildObjActive();
     UpdateApplyListData();
 }
示例#2
0
 public void ShowWnd(bool bShow)
 {
     if (m_BaseWndObject.activeSelf != bShow)
     {
         m_BaseWndObject.SetActive(bShow);
     }
     if (bShow)
     {
         m_ListType = FriendListType.MyFriendList;
         SetChildObjActive();
         UpdateListDate();
     }
 }
示例#3
0
 public bool IsFriendListOutOfDate(FriendListType friendListType)
 {
     switch(friendListType)
     {
             case FriendListType.LoadingAll:
             {
                 return (DateTime.Now - allUpdateTime).TotalSeconds > MessageOutOfDateSeconds;
             }
             case FriendListType.Apply:
             {
                 return (DateTime.Now - applyUpdateTime).TotalSeconds > MessageOutOfDateSeconds;
             }
             case FriendListType.Receive:
             {
                 return (DateTime.Now - recieveUpdateTime).TotalSeconds > MessageOutOfDateSeconds;
             }
     }
     return false;
 }