From 8c575de0fa8b2bfc6ed37f293ca27a8881a413b3 Mon Sep 17 00:00:00 2001 From: CG Date: Sun, 19 Jan 2025 20:46:56 +0800 Subject: [PATCH] =?UTF-8?q?3=E3=80=81=E4=B8=8D=E5=86=8D=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=BB=98=E8=AE=A4=E4=B8=8D=E5=8B=BE=E9=80=89?= =?UTF-8?q?=EF=BC=9B=E7=94=A8=E6=88=B7=E6=89=8B=E5=8A=A8=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=A0=8F=E4=B8=AD=E7=9A=84=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=BC=B9=E5=87=BA=E7=9A=84=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E4=B8=AD=EF=BC=8C=E4=B8=8D=E5=B8=A6=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E6=96=87=E5=AD=97=E6=8F=90=E7=A4=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/_Scripts/Application/GameManager.cs | 1 + .../Application/SceneCtrls/NiuSceneMng.cs | 2 +- .../_Scripts/Application/UI/AppSettingPanel.cs | 2 +- .../Application/UI/ExplainContainPanel.cs | 16 +++++++++------- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Assets/_Scripts/Application/GameManager.cs b/Assets/_Scripts/Application/GameManager.cs index 8e83204..37f7b91 100644 --- a/Assets/_Scripts/Application/GameManager.cs +++ b/Assets/_Scripts/Application/GameManager.cs @@ -31,6 +31,7 @@ namespace ZXK.LouDiXvMuNiu //µ±Ç°appÊó±êÁéÃô¶È [System.NonSerialized] public float _CurMouseFlexible = 50.0f; + [System.NonSerialized] public bool _loopPopExplain = true; public bool _IsFirstFreeCamera = true; diff --git a/Assets/_Scripts/Application/SceneCtrls/NiuSceneMng.cs b/Assets/_Scripts/Application/SceneCtrls/NiuSceneMng.cs index 2291be3..7dae683 100644 --- a/Assets/_Scripts/Application/SceneCtrls/NiuSceneMng.cs +++ b/Assets/_Scripts/Application/SceneCtrls/NiuSceneMng.cs @@ -119,7 +119,7 @@ namespace ZXK.LouDiXvMuNiu if (GameManager.Instance._loopPopExplain) { GameObject explainContainGeo = UI_Manage.Instance.ShowPanel("ExplainContainPanel", System.Type.GetType("ZXK.LouDiXvMuNiu.ExplainContainPanel"), UIGroup.Tip); - explainContainGeo.GetComponent()._IsFirstEnter = true; + explainContainGeo.GetComponent().InitUIState(true); } } private void Update() diff --git a/Assets/_Scripts/Application/UI/AppSettingPanel.cs b/Assets/_Scripts/Application/UI/AppSettingPanel.cs index 1952efe..8366004 100644 --- a/Assets/_Scripts/Application/UI/AppSettingPanel.cs +++ b/Assets/_Scripts/Application/UI/AppSettingPanel.cs @@ -95,7 +95,7 @@ namespace ZXK.LouDiXvMuNiu { PopUpMng._TriAble = false; GameObject explainContainGeo = UI_Manage.Instance.ShowPanel("ExplainContainPanel", System.Type.GetType("ZXK.LouDiXvMuNiu.ExplainContainPanel"), UIGroup.Tip); - explainContainGeo.GetComponent()._IsFirstEnter = false; + explainContainGeo.GetComponent().InitUIState(false); }); _setBtn.onClick.AddListener(() => { diff --git a/Assets/_Scripts/Application/UI/ExplainContainPanel.cs b/Assets/_Scripts/Application/UI/ExplainContainPanel.cs index 0f836db..c24ae00 100644 --- a/Assets/_Scripts/Application/UI/ExplainContainPanel.cs +++ b/Assets/_Scripts/Application/UI/ExplainContainPanel.cs @@ -18,8 +18,8 @@ namespace ZXK.LouDiXvMuNiu private Button _closeBtn = null; private Toggle _popLoop = null; - public bool _IsFirstEnter = false; - public int _clickNumber = 0; + private bool _isFirstEnter = false; + private int _clickNumber = 0; protected override void Awake() { @@ -30,17 +30,19 @@ namespace ZXK.LouDiXvMuNiu _handlerGeo = GetWedage("HandlerExplainBG_N"); _closeBtn = GetWedage("CloseBtn_N").GetComponent