示例#1
0
 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);
     }
 }
示例#2
0
 void Awake()
 {
     ResourceLoad.GetInstance().Load();
     GameApp.Init();
     GameObject.DontDestroyOnLoad(this.gameObject);
 }