//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, April 03, 2018 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using Spine.Unity; namespace Snxxz.UI { public class LaunchBackGroundWin : Window { [SerializeField] RectTransform m_StaticBackGround; [SerializeField] Image m_BackGroundImage; [SerializeField] UIAlphaTween m_AlphaTween; #region Built-in protected override void BindController() { } protected override void AddListeners() { } protected override void OnPreOpen() { var sprite = BuiltInLoader.LoadSprite("LoginBackGround"); m_BackGroundImage.overrideSprite = sprite; m_StaticBackGround.gameObject.SetActive(true); this.transform.SetAsFirstSibling(); } protected override void OnAfterOpen() { } protected override void OnPreClose() { } protected override void OnAfterClose() { } protected override void OnActived() { base.OnActived(); } private void Start() { m_AlphaTween.Play(); } #endregion } }