private void SetTipTxtShow(OpenWhichChat type) { if (!chat_content.activeInHierarchy) { return; } SetTip(type); if (chat_value.value >= GeneralConfigInfo.defaultConfig.chatLerp && chat_value.gameObject.activeInHierarchy) { m_tipObj.gameObject.SetActive(true); } else { m_tipObj.gameObject.SetActive(false); } }
public void AddChatInfo(OpenWhichChat type) { moduleChat.m_newSysMes = false; moduleChat.m_newWordMes = false; moduleChat.m_newUnionMes = false; moduleChat.m_newTeamMes = false; switch (type) { case OpenWhichChat.WorldChat: word_mes.isOn = true; break; case OpenWhichChat.SysChat: sys_mes.isOn = true; break; case OpenWhichChat.UnionChat: m_unionBtn.isOn = true; break; case OpenWhichChat.TeamChat: m_teamToggle.isOn = true; break; } }
private void SetTip(OpenWhichChat type) { if (type == OpenWhichChat.WorldChat) { SetTipTxt(moduleChat.m_newWordMes); } else if (type == OpenWhichChat.SysChat) { SetTipTxt(moduleChat.m_newSysMes); } else if (type == OpenWhichChat.UnionChat) { SetTipTxt(moduleChat.m_newUnionMes); } else if (type == OpenWhichChat.TeamChat) { SetTipTxt(moduleChat.m_newTeamMes); } }