mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 02:40:13 +00:00
优化主题Theme的导入和字体自动刷新 (#148)
This commit is contained in:
@@ -30,9 +30,6 @@ namespace XCharts
|
||||
public string homepage = "";
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
[InitializeOnLoad]
|
||||
#endif
|
||||
[ExecuteInEditMode]
|
||||
public class XChartsMgr : MonoBehaviour
|
||||
{
|
||||
@@ -67,19 +64,13 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
|
||||
private XChartsMgr()
|
||||
{
|
||||
}
|
||||
|
||||
static XChartsMgr()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
EditorApplication.delayCall += () =>
|
||||
{
|
||||
var mgr = XChartsMgr.Instance;
|
||||
};
|
||||
#endif
|
||||
[InitializeOnLoadMethod]
|
||||
private static void OnInitializeOnLoadMethod()
|
||||
{
|
||||
XThemeMgr.ReloadThemeList();
|
||||
}
|
||||
#endif
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user