| | |
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using TableConfig;
|
| | | using System.Linq;
|
| | | using LitJson;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
| | | m_Notice.gameObject.SetActive(GameNotice.HasNotice());
|
| | |
|
| | | m_AlphaTween.SetStartState();
|
| | | m_SwitchAccount.gameObject.SetActive(VersionConfig.Get().versionAuthority == VersionAuthority.Release && !VersionConfig.Get().isBanShu);
|
| | |
|
| | | if (Config.Instance.ContainKey<FuncSwitchConfig>(2))
|
| | | {
|
| | | var switchAccountJson = JsonMapper.ToObject(Config.Instance.Get<FuncSwitchConfig>(2).AppIdSwitch);
|
| | | if (switchAccountJson.Keys.Contains(VersionConfig.Get().appId) && switchAccountJson[VersionConfig.Get().appId].ToString() == "0")
|
| | | {
|
| | | m_SwitchAccount.gameObject.SetActive(false);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_SwitchAccount.gameObject.SetActive(true);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | m_SwitchAccount.gameObject.SetActive(true);
|
| | | }
|
| | |
|
| | | if (m_UserHelp)
|
| | | {
|