整理Examples的代码,删除不必要的用例

This commit is contained in:
monitor1394
2023-08-05 09:41:33 +08:00
parent 9d3d8543a5
commit f88ac6b4c4
26 changed files with 74 additions and 597 deletions

View File

@@ -6,6 +6,7 @@ using XCharts.Runtime;
namespace XCharts.Example
{
[DisallowMultipleComponent]
[RequireComponent(typeof(LineChart))]
public class Example00_CheatSheet : MonoBehaviour
{
private LineChart chart;
@@ -43,7 +44,6 @@ namespace XCharts.Example
IEnumerator InitChart()
{
chart = gameObject.GetComponent<LineChart>();
if (chart == null) gameObject.AddComponent<LineChart>();
chart.EnsureChartComponent<Title>().show = true;
chart.EnsureChartComponent<Title>().text = "术语解析-组件";