| | |
| | | |
| | | public class LaunchWin : UIBase |
| | | { |
| | | [SerializeField] UIAlphaTween m_AlphaTween; |
| | | // [SerializeField] UIAlphaTween m_AlphaTween; |
| | | [SerializeField] Image m_BackGround; |
| | | [SerializeField] RectTransform m_AndroidProgressContainer; |
| | | [SerializeField] RectTransform m_NetworkContainer; |
| | |
| | | [SerializeField] Text m_IosProgressTip; |
| | | [SerializeField] Text m_BuildTime; |
| | | [SerializeField] Text m_Version; |
| | | [SerializeField] Button m_UserHelp; |
| | | |
| | | bool assetBuildTimeShowed = false; |
| | | |
| | |
| | | float TempCheck = 0; |
| | | protected override void InitComponent() |
| | | { |
| | | base.InitComponent(); |
| | | m_BackGround.preserveAspect = true; |
| | | if (Application.isEditor) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | // AddListener |
| | | if (m_UserHelp) |
| | | { |
| | | m_UserHelp.SetListener(OpenUserHelp); |
| | | } |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | base.OnPreOpen(); |
| | | backGroundTimer = 0f; |
| | | backGroundIndex = 0; |
| | | if (m_TotalProgressSlider != null) |
| | |
| | | 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); |
| | |
| | | { |
| | | 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) |
| | |
| | | |
| | | 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) |
| | |
| | | } |
| | | } |
| | | |
| | | public LaunchWinData GetData() |
| | | { |
| | | return new LaunchWinData(){ |
| | | backGroundTimer = backGroundTimer, |
| | | backGroundIndex = backGroundIndex, |
| | | sprite = m_BackGround.overrideSprite, |
| | | sprites = backGrounds, |
| | | }; |
| | | } |
| | | |
| | | } |
| | | |
| | | |