From 68b153f681713e4831d67b0cf56a9b302e3635e9 Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Thu, 10 Dec 2020 20:25:48 +0800
Subject: [PATCH] 未上阵塔动画

---
 Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs b/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs
index b1ceaf6..56a5bb0 100644
--- a/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs
+++ b/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs
@@ -19,7 +19,11 @@
             DontDestroyOnLoad(this);
             Application.logMessageReceived += (string condition, string stackTrace, LogType type) =>
             {
-                m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace));
+                if (type == LogType.Error)
+                {
+                    m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace));
+                    m_IsVisible = true;
+                }
             };
         }
 
@@ -52,7 +56,7 @@
 
         private void OnGUI()
         {
-            GUILayout.BeginArea(new Rect(5, 460, 150, 300));
+            GUILayout.BeginArea(new Rect(5, 330, 150, 300));
             if (GUILayout.Button("Debug", GUILayout.Width(150), GUILayout.Height(70)))
                 m_IsVisible = !m_IsVisible;
             GUILayout.EndArea();

--
Gitblit v1.9.1