private void OnEnable() { ChatTipUIViewModel.Close(); this.CurrentChatChannel = 1; ChatManager.Instance.CheckPrivateBadge(); this.IsSayOn = false; }
private void Add2ChatTipUI(int dstChannels, ChatManager.ChatInfo chatInfo) { for (int i = 0; i < ChannelBit.all_channelviews.Length; i++) { if (ChannelBit.IsContainChannel(dstChannels, ChannelBit.all_channelviews[i]) && !this.CheckIsChannelMaskOn(ChannelBit.all_channelviews[i])) { ChatTipUIViewModel.AddChat(chatInfo); return; } } }
private void OnDisable() { if (ChatTalkTipUIView.Instance != null) { ChatTalkTipUIView.Instance.Show(false); } if (EntityWorld.Instance.EntSelf == null) { return; } if (EntityWorld.Instance.EntSelf.IsInBattle) { ChatTipUIViewModel.Open(UINodesManager.NormalUIRoot, true); } else if (TownUI.Instance != null) { ChatTipUIViewModel.Open(TownUI.Instance.m_ChatTipUIRoot, true); } this.SendContent = string.Empty; }
protected override void Awake() { base.Awake(); ChatTipUIViewModel.m_instance = this; }