From 8a807a5019a7a897b912d3af33862b79849a45b3 Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 03 十二月 2018 15:33:56 +0800
Subject: [PATCH] 5167 【前端】【1.3.100】提交bug功能,前端做开关(表格控制)
---
System/SystemSetting/FuncSwitchBehaviour.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/System/SystemSetting/FuncSwitchBehaviour.cs b/System/SystemSetting/FuncSwitchBehaviour.cs
index fc903d0..08d9f02 100644
--- a/System/SystemSetting/FuncSwitchBehaviour.cs
+++ b/System/SystemSetting/FuncSwitchBehaviour.cs
@@ -7,21 +7,21 @@
public class FuncSwitchBehaviour : MonoBehaviour
{
[Header("鍔熻兘寮�鍏矷d")]
- [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);
}
--
Gitblit v1.8.0