From 67ee17292855d8ce2e077bea2f86113adadf839c Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Wed, 16 Dec 2020 11:26:28 +0800
Subject: [PATCH] 修改编辑器模式下不走SDK流程 修改新手引导血条显示层级

---
 Assets/Scripts/Guide/GuidePanelNew.cs |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/Guide/GuidePanelNew.cs b/Assets/Scripts/Guide/GuidePanelNew.cs
index 3889b7b..acad04e 100644
--- a/Assets/Scripts/Guide/GuidePanelNew.cs
+++ b/Assets/Scripts/Guide/GuidePanelNew.cs
@@ -42,8 +42,10 @@
     //ParticleSystem finishPS;
     Button finishBtn;
     Image finishImg;
+    Canvas skillCanvasGroup;
     void Awake()
     {
+
         tmpMask = transform.GetComponent<Image>();
         tipsUI = transform.Find("Tips").gameObject;
         tipsUI.transform.SetAsLastSibling();//把tips放在最下面
@@ -345,7 +347,18 @@
         StopShowDragPath(true);
     }
 
-
+    /// <summary>
+    /// 关闭技能X1的显示优先级
+    /// </summary>
+    public void CloseSkillImage()
+    {
+        GameObject go1 = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBg/SkillCount1");
+        if (go1 != null)
+        {
+            skillCanvasGroup = go1.GetComponent<Canvas>();
+            skillCanvasGroup.overrideSorting = false;
+        }
+    }
 
     /// <summary>
     ///  步骤3 :对话---出兵后杀光---对话---展示火鸡
@@ -617,6 +630,8 @@
     public void Step7Talk(string[] str, Action ac)
     {
         callBack = ac;
+        GameObject.Find("UICamera/MainUI/BloodUI").SetActive(false);
+
         SetGuideUI(true);
         StartShowWord(str, GuideEnergyUp);
     }
@@ -628,7 +643,6 @@
     /// </summary>
     public void GuideEnergyUp()
     {
-        GameObject.Find("UICamera/MainUI/BloodUI").SetActive(false);
         EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.GuideEnergyUp, 100);
 
         tmpMask.enabled = false;
@@ -677,6 +691,8 @@
 
     public void FinishGuide()
     {
+        if (skillCanvasGroup != null)
+            skillCanvasGroup.overrideSorting = true;
         towerBuyBtn.gameObject.SetActive(true);
     }
 

--
Gitblit v1.9.1