From 51058a97a49bf16789010c8306909cbc5356785c Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Tue, 17 Nov 2020 18:32:52 +0800
Subject: [PATCH] 修改特效以及还原场景

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

diff --git a/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs b/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs
index b1ceaf6..1275319 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;
+                }
             };
         }
 

--
Gitblit v1.9.1