using TMPro; using UnityEngine; [DisallowMultipleComponent] public class LanguageText : MonoBase { [SerializeField] private string _dataId; private void Awake() { var tm = GetComponent(); if(tm != null) { tm.text = Game.language.GetLangByID(_dataId); #if UNITY_EDITOR if (tm.text == "0") LogError($"language´íÎó{_dataId} {transform.parent.name}/{transform.name}"); #endif } } }