Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    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;
        }
    }
Exemplo n.º 3
0
 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);
     }
 }