//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, May 09, 2019 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; namespace Snxxz.UI { [ExecuteInEditMode] public class SecondFrameLoader : UIPrefabLoader { [SerializeField] string m_TitleKey; public override void Create() { base.Create(); if (Application.isPlaying) { if (!string.IsNullOrEmpty(m_TitleKey)) { var text = this.GetComponentInChildren(); if (text != null) { text.text = Language.Get(m_TitleKey); } } } } } }