mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 14:30:10 +00:00
修复版本检查非运行时异常的问题
This commit is contained in:
@@ -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<XChartsMgr>();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user