예제 #1
0
 private void OnEnable()
 {
     ChatTipUIViewModel.Close();
     this.CurrentChatChannel = 1;
     ChatManager.Instance.CheckPrivateBadge();
     this.IsSayOn = false;
 }
예제 #2
0
 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;
         }
     }
 }
예제 #3
0
 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;
 }
예제 #4
0
 protected override void Awake()
 {
     base.Awake();
     ChatTipUIViewModel.m_instance = this;
 }