private GameObject GetTitleTextByType(eTextTitleType _typeOfTitle) { if (m_dictionaryTitleText.ContainsKey(_typeOfTitle)) { return(m_dictionaryTitleText[_typeOfTitle]); } return(null); }
public void SetupTitleTextWithType(eTextTitleType _typeOfTitle) { if (m_currentTitleText != null) { m_currentTitleText.SetActive(false); } m_currentTitleText = GetTitleTextByType(_typeOfTitle); if (m_currentTitleText) { m_currentTitleText.SetActive(true); } }