This commit is contained in:
monitor1394
2022-03-26 21:34:38 +08:00
parent 3fbf5bc906
commit ed393ea560
13 changed files with 79 additions and 121 deletions

View File

@@ -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;