mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 17:00:08 +00:00
3.0
This commit is contained in:
@@ -129,9 +129,8 @@ namespace XCharts.Runtime
|
||||
#if UNITY_EDITOR
|
||||
if (s_Instance == null)
|
||||
{
|
||||
var isExist = System.IO.File.Exists("Assets/XCharts/Resources/XCSettings.asset");
|
||||
if(isExist)
|
||||
XChartsPackageResourceImporterWindow.ShowPackageImporterWindow();
|
||||
if (!ExistAssetFile())
|
||||
XCResourceImporterWindow.ShowPackageImporterWindow();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -152,6 +151,11 @@ namespace XCharts.Runtime
|
||||
}
|
||||
}
|
||||
|
||||
public static bool ExistAssetFile()
|
||||
{
|
||||
return System.IO.File.Exists("Assets/XCharts/Resources/XCSettings.asset");
|
||||
}
|
||||
|
||||
public static bool AddCustomTheme(Theme theme)
|
||||
{
|
||||
if (theme == null) return false;
|
||||
|
||||
Reference in New Issue
Block a user