using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PFUIImage : PFUIPanel { [SerializeField] Sprite zhImage; protected override void Awake() { if (zhImage == null) return; var lang = App.GetLocalLanguage(); if (lang == "zh") { GetComponent().sprite = zhImage; } } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }