重命名为xcharts

This commit is contained in:
monitor1394
2018-09-15 06:52:42 +08:00
commit c45e81d2e9
11 changed files with 2579 additions and 0 deletions

23
Demo.cs Normal file
View File

@@ -0,0 +1,23 @@
using UnityEngine;
using xcharts;
public class Demo : MonoBehaviour
{
private LineChart lineChart;
private float time;
void Awake () {
lineChart = transform.Find("line_chart").GetComponent<LineChart>();
}
void Update () {
time += Time.deltaTime;
if (time >= 1)
{
time = 0;
lineChart.AddPoint("fps", Random.Range(24.0f, 60.0f));
lineChart.AddPoint("rtt", Random.Range(15, 30));
lineChart.AddPoint("ping", Random.Range(0, 100));
}
}
}