| | |
| | | public override void UnInit() |
| | | { |
| | | ChatCtrl.OnRefreshPteChat -= FriendChatRedPointCtrl; |
| | | ChatCtrl.Inst.SelectRecentlyEvent -= PrivateSomeone; |
| | | GA_Hero.OnKillPlayer -= RefreshKillOtherPlayer; |
| | | } |
| | | |
| | | public void OnBeforePlayerDataInitialize() |
| | | { |
| | | ChatCtrl.OnRefreshPteChat -= FriendChatRedPointCtrl; |
| | | ChatCtrl.Inst.SelectRecentlyEvent -= PrivateSomeone; |
| | | _groupDict.Clear(); |
| | | _friendQuestDict.Clear(); |
| | | _friendRecommendDict.Clear(); |
| | |
| | | public void OnAfterPlayerDataInitialize() |
| | | { |
| | | ChatCtrl.OnRefreshPteChat += FriendChatRedPointCtrl; |
| | | ChatCtrl.Inst.SelectRecentlyEvent += PrivateSomeone; |
| | | } |
| | | |
| | | |
| | | private void RefreshKillOtherPlayer(uint id, string name) |
| | | { |
| | |
| | | DesignDebug.Log("FriendChatRedPointCtrl"); |
| | | } |
| | | |
| | | private void PrivateSomeone(int playerId) |
| | | { |
| | | RemoveFriendRed(GroupType.RecentContact, playerId); |
| | | } |
| | | |
| | | |
| | | public void RemoveFriendRed(GroupType type,int id) |
| | | { |
| | | if (friendRedDict.ContainsKey(type)) |