From e13049774ac3ab7fd2bd4caff26a88f0103c8d9c Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 26 Oct 2019 05:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=9D=9E=E8=BF=90=E8=A1=8C=E6=97=B6=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/XCharts/Runtime/Utility/XChartsMgr.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Assets/XCharts/Runtime/Utility/XChartsMgr.cs b/Assets/XCharts/Runtime/Utility/XChartsMgr.cs index 5181f9a2..569ae336 100644 --- a/Assets/XCharts/Runtime/Utility/XChartsMgr.cs +++ b/Assets/XCharts/Runtime/Utility/XChartsMgr.cs @@ -1,3 +1,10 @@ +/******************************************/ +/* */ +/* Copyright (c) 2018 monitor1394 */ +/* https://github.com/monitor1394 */ +/* */ +/******************************************/ + using System.Text; using System.Collections; @@ -36,7 +43,10 @@ namespace XCharts { go = new GameObject(); go.name = "_xcharts_"; - DontDestroyOnLoad(go); + if (Application.isPlaying) + { + DontDestroyOnLoad(go); + } m_XCharts = go.AddComponent(); } else