public void UpdateIcon() { if (this.m_player == null) { base.gameObject.SetActive(false); } else { List <BnetWhisper> whispersWithPlayer = BnetWhisperMgr.Get().GetWhispersWithPlayer(this.m_player); if (whispersWithPlayer == null) { base.gameObject.SetActive(false); } else if (whispersWithPlayer[whispersWithPlayer.Count - 1].IsSpeaker(BnetPresenceMgr.Get().GetMyPlayer())) { base.gameObject.SetActive(false); } else { PlayerChatInfo playerChatInfo = ChatMgr.Get().GetPlayerChatInfo(this.m_player); if ((playerChatInfo != null) && (Enumerable.LastOrDefault <BnetWhisper>(whispersWithPlayer, (Func <BnetWhisper, bool>)(whisper => whisper.IsSpeaker(this.m_player))) == playerChatInfo.GetLastSeenWhisper())) { base.gameObject.SetActive(false); } else { base.gameObject.SetActive(true); } } } }
private void OnPlayerChatInfoChanged(PlayerChatInfo chatInfo, object userData) { if (this.m_player == chatInfo.GetPlayer()) { this.UpdateFriend(); } }
public void Fire(PlayerChatInfo chatInfo) { base.m_callback(chatInfo, base.m_userData); }