internal static void SetText(Transform transform, int ID, LanguageType type) { if (type == LanguageType.Chinese) { transform.GetComponent <UILabel>().font = ResourceLoad.GetInstance().xjlFont; transform.GetComponent <UILabel>().text = TableLanguage.GetInstance().GetTextById(ID, type); } else if (type == LanguageType.English) { transform.GetComponent <UILabel>().font = ResourceLoad.GetInstance().xjlFont; transform.GetComponent <UILabel>().text = TableLanguage.GetInstance().GetTextById(ID, type); } else if (type == LanguageType.Japanese) { transform.GetComponent <UILabel>().font = ResourceLoad.GetInstance().jpFont; transform.GetComponent <UILabel>().text = TableLanguage.GetInstance().GetTextById(ID, type); } }
void Awake() { ResourceLoad.GetInstance().Load(); GameApp.Init(); GameObject.DontDestroyOnLoad(this.gameObject); }