少年修仙传客户端代码仓库
Client_PangDeRong
2018-12-03 8a807a5019a7a897b912d3af33862b79849a45b3
5167 【前端】【1.3.100】提交bug功能,前端做开关(表格控制)
1个文件已修改
8 ■■■■ 已修改文件
System/SystemSetting/FuncSwitchBehaviour.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/SystemSetting/FuncSwitchBehaviour.cs
@@ -7,21 +7,21 @@
    public class FuncSwitchBehaviour : MonoBehaviour
    {
        [Header("功能开关Id")]
        [SerializeField] int swithId;
        [SerializeField] int switchId;
        [SerializeField] GameObject open;
        [SerializeField] GameObject close;
        FuncSwitchModel switchModel { get { return ModelCenter.Instance.GetModel<FuncSwitchModel>(); } }
        private void OnEnable()
        private void Awake()
        {
            SetDisplay();
        }
        private void SetDisplay()
        {
            bool isOpen = switchModel.IsOpen(swithId);
            bool isOpen = switchModel.IsOpen(switchId);
            open.SetActive(isOpen);
            close.SetActive(!isOpen);
        }