hch
7 天以前 27fcdab4830ef0791105be6529a1dfac36b85982
Main/System/Launch/LaunchWin.cs
@@ -13,7 +13,7 @@
    public class LaunchWin : UIBase
    {
        [SerializeField] UIAlphaTween m_AlphaTween;
        // [SerializeField] UIAlphaTween m_AlphaTween;
        [SerializeField] Image m_BackGround;
        [SerializeField] RectTransform m_AndroidProgressContainer;
        [SerializeField] RectTransform m_NetworkContainer;
@@ -24,7 +24,6 @@
        [SerializeField] Text m_IosProgressTip;
        [SerializeField] Text m_BuildTime;
        [SerializeField] Text m_Version;
        [SerializeField] Button m_UserHelp;
        bool assetBuildTimeShowed = false;
@@ -42,6 +41,7 @@
        float TempCheck = 0;
        protected override void InitComponent()
        {
            base.InitComponent();
            m_BackGround.preserveAspect = true;
            if (Application.isEditor)
            {
@@ -63,15 +63,11 @@
            }
            // AddListener
            if (m_UserHelp)
            {
                m_UserHelp.SetListener(OpenUserHelp);
            }
        }
        protected override void OnPreOpen()
        {
            base.OnPreOpen();
            backGroundTimer = 0f;
            backGroundIndex = 0;
            if (m_TotalProgressSlider != null)
@@ -79,17 +75,10 @@
                m_TotalProgressSlider.ResetValue(0f);
            }
            m_AlphaTween.SetStartState();
            // m_AlphaTween.SetStartState();
            m_BuildTime.text = VersionConfig.Get().debugVersion ? VersionConfig.Get().buildTime : "";
            if (m_UserHelp)
            {
                var appId = VersionConfig.Get().appId;
                var branch = VersionConfig.Get().branch;
                //m_UserHelp.SetActive(ContactConfig.GetConfig(appId, branch) != null);
                m_UserHelp.SetActive(false);
            }
            if (m_NetworkContainer != null)
            {
                m_NetworkContainer.SetActive(false);
@@ -117,7 +106,8 @@
            {
                m_AndroidProgressContainer.SetActive(true);
                m_IosProgressContainer.SetActive(false);
                m_Version.text = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, Language.Id);
                //打包版本 + 功能版本 + 语言ID
                m_Version.text = LoginManager.Instance.GetVersionStr();
            }
            if (m_StageDescription != null)
@@ -135,20 +125,23 @@
        protected override void OnOpen()
        {
            base.OnOpen();
        }
        protected override void OnPreClose()
        {
            base.OnPreClose();
        }
        protected override void OnClose()
        {
            base.OnClose();
        }
        public void FadeOut()
        {
            m_AlphaTween.Play();
            // m_AlphaTween.Play();
            CloseWindow();
        }
        string GetLaunchStageDescription(LaunchStage _stage, int step)
@@ -285,6 +278,16 @@
            }
        }
        public LaunchWinData GetData()
        {
            return new LaunchWinData(){
                backGroundTimer = backGroundTimer,
                backGroundIndex = backGroundIndex,
                sprite = m_BackGround.overrideSprite,
                sprites = backGrounds,
            };
        }
    }