少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-15 966febfb534c66812e28636e0ea22f833b51d5fe
System/Login/LoginWin.cs
@@ -33,6 +33,7 @@
        [SerializeField] Button m_ServerSelect;
        [SerializeField] Button m_SwitchAccount;
        [SerializeField] Button m_Notice;
        [SerializeField] Button m_UserHelp;
        [SerializeField] RichText m_BanHao;
        LoginModel model { get { return ModelCenter.Instance.GetModel<LoginModel>(); } }
@@ -45,14 +46,11 @@
        protected override void AddListeners()
        {
            m_EnterGame.AddListener(EnterGame);
            m_ServerSelect.AddListener(OpenServerListWin);
            if (m_SwitchAccount != null)
            {
                m_SwitchAccount.AddListener(SwitchAccount);
            }
            m_Notice.AddListener(VeiwNotice);
            m_EnterGame.SetListener(EnterGame);
            m_ServerSelect.SetListener(OpenServerListWin);
            m_SwitchAccount.SetListener(SwitchAccount);
            m_Notice.SetListener(VeiwNotice);
            m_UserHelp.SetListener(OpenUserHelp);
        }
        protected override void OnPreOpen()
@@ -66,10 +64,7 @@
            m_Notice.gameObject.SetActive(GameNotice.HasNotice());
            m_AlphaTween.SetStartState();
            if (m_SwitchAccount != null)
            {
                m_SwitchAccount.gameObject.SetActive(VersionConfig.Get().versionAuthority == VersionAuthority.Release && !VersionConfig.Get().isBanShu);
            }
            m_SwitchAccount.gameObject.SetActive(VersionConfig.Get().versionAuthority == VersionAuthority.Release && !VersionConfig.Get().isBanShu);
            m_WaitServerList.gameObject.SetActive(!ServerListCenter.Instance.serverListGot);
            m_ContainerEnterGame.gameObject.SetActive(ServerListCenter.Instance.serverListGot);
@@ -238,6 +233,10 @@
            GameNotice.OpenGameNoticeForce();
        }
        private void OpenUserHelp()
        {
            WindowCenter.Instance.OpenFromLocal<UserHelpWin>();
        }
    }