From 857470a8e17241c4c920ad4366c3f5cdd9a52465 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 05 十一月 2019 00:07:15 +0800
Subject: [PATCH] update 动画播放逻辑修改

---
 Assets/Editor/ScriptEditor/NewBieGuideEditorWindow.cs |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/Assets/Editor/ScriptEditor/NewBieGuideEditorWindow.cs b/Assets/Editor/ScriptEditor/NewBieGuideEditorWindow.cs
index 6b03857..9ec533e 100644
--- a/Assets/Editor/ScriptEditor/NewBieGuideEditorWindow.cs
+++ b/Assets/Editor/ScriptEditor/NewBieGuideEditorWindow.cs
@@ -363,6 +363,7 @@
             guideContent = so.tipContent;
             arrowPosition = so.arrowPosition;
             selectBox = so.selectBox;
+            effect2 = so.effect2;
             var selectBosAssetName = string.Empty;
             switch (so.selectBox)
             {
@@ -410,6 +411,7 @@
             so.tipContent = guideContent;
             so.arrowPosition = arrowPosition;
             so.selectBox = selectBox;
+            so.effect2 = effect2;
             if (m_ClickTarget != null)
             {
                 so.UIElementPath = UIUtility.GetUIElementRelativePath(uiroot, m_ClickTarget);
@@ -451,10 +453,10 @@
 
     void DrawNewbieGuides()
     {
-        if (Config.Instance.inited && newbieGuides == null)
+        if (ConfigInitiator.done && newbieGuides == null)
         {
             newbieGuides = new List<NewBieGuide>();
-            var guides = Config.Instance.GetAllValues<GuideConfig>();
+            var guides = GuideConfig.GetValues();
             foreach (var config in guides)
             {
                 if (config.Type == 1)
@@ -507,10 +509,10 @@
 
     void DrawFunctionalGuides()
     {
-        if (Config.Instance.inited && functionalGuides == null)
+        if (ConfigInitiator.done && functionalGuides == null)
         {
             functionalGuides = new List<FunctionalGuide>();
-            var guides = Config.Instance.GetAllValues<GuideConfig>();
+            var guides = GuideConfig.GetValues();
             foreach (var config in guides)
             {
                 if (config.Type == 2)
@@ -544,6 +546,11 @@
                 if (GUILayout.Button("瀹屾垚"))
                 {
                     guide.Finish();
+                }
+
+                if (GUILayout.Button("閲嶇疆"))
+                {
+                    guide.Reset();
                 }
 
                 EditorGUILayout.Space();
@@ -602,6 +609,11 @@
             FunctionalGuideCenter.Instance.RemoveGuide(guideId);
         }
 
+        public void Reset()
+        {
+            NewBieCenter.Instance.ResetGuide(guideId);
+        }
+
     }
 
 

--
Gitblit v1.8.0