void OnApplyMsg(GameObject go) { GlobalAudioMgr.Instance.PlayOrdianryMusic(Audio.OrdianryMusic.m_BtnMusic); m_ListType = FriendListType.ApplyList; SetChildObjActive(); UpdateApplyListData(); }
public void ShowWnd(bool bShow) { if (m_BaseWndObject.activeSelf != bShow) { m_BaseWndObject.SetActive(bShow); } if (bShow) { m_ListType = FriendListType.MyFriendList; SetChildObjActive(); UpdateListDate(); } }
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; }