整理代码

This commit is contained in:
monitor1394
2019-06-21 09:34:33 +08:00
parent 3dab004731
commit fc95338274
34 changed files with 64 additions and 94 deletions

View File

@@ -1,6 +1,5 @@
using System;
using UnityEngine;
using UnityEngine.UI;
using XCharts;
[DisallowMultipleComponent]

View File

@@ -26,10 +26,10 @@ public class Demo_LargeData : MonoBehaviour
void Update()
{
if (initCount< maxCacheDataNumber)
if (initCount < maxCacheDataNumber)
{
int count = (int)(maxCacheDataNumber / initDataTime * Time.deltaTime);
for(int i = 0; i < count; i++)
for (int i = 0; i < count; i++)
{
timeNow = timeNow.AddSeconds(1);
chart.AddXAxisData(timeNow.ToString("hh:mm:ss"));

View File

@@ -19,10 +19,10 @@ public class Demo_PieChart : MonoBehaviour
private void Update()
{
time += Time.deltaTime;
if(time > 1 )
if (time > 1)
{
time = 0;
if(count < 5)
if (count < 5)
{
chart.AddData("time" + count, Random.Range(10, 100));
}

View File

@@ -1,5 +1,4 @@
using UnityEngine;
using UnityEngine.UI;
using XCharts;
[DisallowMultipleComponent]