Beispiel #1
0
        private void InitPreLoadTableMetaData()
        {
            TableConfig.preLoadTableArray = new TDTableMetaData[]
            {
                TDLanguageTable.GetLanguageMetaData(),
                    TDGuideTable.metaData,
                    TDGuideStepTable.metaData,

                    TDPropsTable.metaData,
                    TDPropsEntityTable.metaData,
                    TDRolesTable.metaData,
                    TDSkillsTable.metaData,
                    TDConstTable.metaData,
                    TDBasePropertyTable.metaData,
                    TDChestTable.metaData,
                    TDMonsterTable.metaData,
                    TDStageTable.metaData,
                    TDPayTable.metaData,
                    TDBossTable.metaData,

                // TDSocialAdapterTable.metaData,
                // TDAdConfigTable.metaData,
                // TDAdPlacementTable.metaData,
                // TDAppConfigTable.metaData,
                // TDRemoteConfigTable.metaData,
                // TDPurchaseTable.metaData,
            };
        }
Beispiel #2
0
        public void SwitchLanguage(string key)
        {
            TDTableMetaData[] tables = new TDTableMetaData[]
            {
                TDLanguageTable.GetLanguageMetaData(),
            };

            m_IsTableLoadFinish = false;
            ApplicationMgr.S.StartCoroutine(TableMgr.S.ReadAll(tables, OnLanguageSwitchLoadFinish));
        }
Beispiel #3
0
        public void Translate()
        {
            if (m_Text == null)
            {
                m_Text = GetComponent <Text>();
            }

            if (m_Text == null)
            {
                Log.E("Not Find Text Componment On:" + gameObject.name);
                return;
            }
            if (m_Value != null)
            {
                m_Text.text = string.Format(TDLanguageTable.Get(m_Key), m_Value);
            }
            else
            {
                m_Text.text = TDLanguageTable.Get(m_Key);
            }
        }