Example #1
0
        public static Sprite TranslateImg(string relativeName)
        {
            Sprite sp = ResUtil.LoadSprite($"Sprite/Localization/{relativeName}_{SavedLanguage}");

            if (sp == null)
            {
                Debug.LogWarning($"Sprite/Localization/{relativeName}_{SavedLanguage}图片不存在");
            }
            return(sp);
        }
Example #2
0
 private static Texture2D TranslateImgSpecific(string relativeName, XIHLanguage lag)
 {
     return(ResUtil.LoadSprite($"Sprite/Localization/{relativeName}_{lag}")?.texture);
 }