新增对 InputSystem 的支持

Update BaseGraph.cs

Update XCharts.Runtime.asmdef
This commit is contained in:
边上海
2023-01-29 19:43:05 +08:00
parent e90d7d61d9
commit 7fbaf7af70
14 changed files with 444 additions and 288 deletions

View File

@@ -253,7 +253,15 @@ namespace XCharts.Runtime
else
return component;
}
public T EnsureChartComponent<T>() where T : MainComponent
{
var component = GetChartComponent<T>();
if (component == null)
return AddChartComponent<T>();
else
return component;
}
public bool TryGetChartComponent<T>(out T component, int index = 0)
where T : MainComponent
{