| | |
| | | public class LaunchBackGroundWin : UIBase |
| | | { |
| | | // 组件引用 |
| | | [SerializeField] RectTransform m_StaticBackGround; |
| | | [SerializeField] Image m_BackGroundImage; |
| | | // [SerializeField] RectTransform m_StaticBackGround; |
| | | // [SerializeField] Image m_BackGroundImage; |
| | | [SerializeField] TextEx info; |
| | | // 生命周期 |
| | | protected override void Awake() |
| | |
| | | LoginManager.Instance.loginErrorEvent += OnLoginError; |
| | | |
| | | |
| | | var sprite = BuiltInLoader.LoadSprite("LoginBackGround"); |
| | | m_BackGroundImage.overrideSprite = sprite; |
| | | // var sprite = BuiltInLoader.LoadSprite("LoginBackGround"); |
| | | // m_BackGroundImage.overrideSprite = sprite; |
| | | //m_BackGroundImage.preserveAspect = true; |
| | | m_StaticBackGround.SetActive(true); |
| | | // m_StaticBackGround.SetActive(true); |
| | | |
| | | this.transform.SetAsFirstSibling(); |
| | | info.text = LoginManager.Instance.loginErrorInfo; |