private void GetDatas()
 {
     GetData(ref m_TextData, nameof(m_TextData));
     GetData(ref m_ShowPreview, nameof(m_ShowPreview));
     GetData(ref m_TextDisplay, nameof(m_TextDisplay));
     m_UseTextData.target = m_ShowPreview.boolValue;
     m_LanguageData       = (MultiLanguageData)m_TextData.objectReferenceValue;
 }
示例#2
0
        private void GetDatas()
        {
            m_Language = (MultiLanguageData)serializedObject.targetObject;

            GetData(ref m_AvailableLanguageData, nameof(m_AvailableLanguageData));
            if ((AvailableLanguageData)AssetDatabase.LoadAssetAtPath(AvailableLanguage.AvailableLanguagePath, typeof(AvailableLanguageData)) != null)
            {
                m_AvailableLanguage = (AvailableLanguageData)AssetDatabase.LoadAssetAtPath(AvailableLanguage.AvailableLanguagePath, typeof(AvailableLanguageData));
                m_Language.EDITOR_UpdateDictionnary(m_AvailableLanguage);
            }
            else
            {
                m_AvailableLanguage = null;
            }

            GetData(ref m_TypeChoice, nameof(m_TypeChoice));
            GetData(ref m_MultiClips, nameof(m_MultiClips));
        }
示例#3
0
 public void SetNewText(MultiLanguageData aTextData)
 {
     m_TextData = aTextData;
     ShowTxt();
 }