private void UpdateTeamChatTip(ChatManager.ChatInfo chatInfo) { if (!base.get_gameObject().get_activeInHierarchy()) { return; } Transform transform = base.FindTransform("TeamTalkToot"); int num = 0; if (chatInfo != null && this.m_memberResume.roleId == chatInfo.sender_uid) { if (transform.get_childCount() > num) { transform.GetChild(num).get_gameObject().SetActive(true); ChatInfoBase component = transform.GetChild(num).GetComponent <ChatInfo2Bubble>(); if (component != null) { component.Clear(); component.ShowInfo(chatInfo); } } else { GameObject chatInfo2Bubble = ChatManager.Instance.GetChatInfo2Bubble(chatInfo, transform); chatInfo2Bubble.set_name("chatInfoBubble"); chatInfo2Bubble.get_transform().set_localPosition(Vector3.get_zero()); } num++; } for (int i = num; i < transform.get_childCount(); i++) { GameObject gameObject = transform.GetChild(i).get_gameObject(); gameObject.SetActive(false); } }
public static void Reuse2TipChatInfoPool(ChatInfoBase gridUI) { if (gridUI != null) { gridUI.Clear(); ChatManager.ChatInfoTipPool.ReUse(gridUI.get_gameObject()); } }