31 lines
579 B
C#
31 lines
579 B
C#
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<Image>().sprite = zhImage;
|
|
}
|
|
}
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|