少年修仙传客户端代码仓库
client_Wu Xijin
2018-12-24 f4cc1319bef6365a694ebcba2293807ad8708ade
5574 【1.3.100】【前端】按平台区分是否显示切换账号
1个文件已修改
12 ■■■■■ 已修改文件
System/SystemSetting/SystemSetWin.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/SystemSetting/SystemSetWin.cs
@@ -2,6 +2,8 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using LitJson;
using TableConfig;
namespace Snxxz.UI
{
@@ -116,6 +118,16 @@
                m_AntiAddition.gameObject.SetActive(false);
            }
            var switchAccountJson = JsonMapper.ToObject(Config.Instance.Get<FuncSwitchConfig>(2).AppIdSwitch);
            if (switchAccountJson.Keys.Contains(VersionConfig.Get().appId) && switchAccountJson[VersionConfig.Get().appId].ToString() == "0")
            {
                m_SwitchAccountBtn.gameObject.SetActive(false);
            }
            else
            {
                m_SwitchAccountBtn.gameObject.SetActive(true);
            }
            loginModel.accountBindOkEvent += UpdateAccountBindTitle;
            SDKUtility.Instance.onFreePlatfromDoIDAuthenticationOk += OnAuthenticationOk;
            SystemSetting.Instance.gameFrameChangeEvent += OnSwitchGameFrame;