This commit is contained in:
monitor1394
2022-03-20 18:52:50 +08:00
parent 4e24ba7922
commit c510831f59
64 changed files with 562 additions and 159 deletions

View File

@@ -20,20 +20,12 @@ namespace XCharts.Example
}
}
float m_LastTime = 0;
double m_Value = 0;
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
//AddData();
OnTestBtn();
}
if (Time.time - m_LastTime > 0.1f)
{
m_LastTime = Time.time;
chart.UpdateData(0, 2, m_Value);
m_Value += 15;
AddData();
//OnTestBtn();
}
}