优化代码

This commit is contained in:
monitor1394
2019-07-25 21:10:57 +08:00
parent d024f37cd5
commit a1dc6ca8ad
8 changed files with 2 additions and 26 deletions

View File

@@ -167,7 +167,6 @@ namespace XCharts
serieNameSet.Clear();
for (int j = 0; j < seriesCount; j++)
{
var seriesHig = new Dictionary<int, float>();
var serieList = stackSeries[j];
seriesCurrHig.Clear();
if (seriesCurrHig.Capacity != serieList[0].dataCount)

View File

@@ -89,7 +89,6 @@ namespace XCharts
int maxCount = maxShowDataNumber > 0 ?
(maxShowDataNumber > serie.dataCount ? serie.dataCount : maxShowDataNumber)
: serie.dataCount;
int dataCount = (maxCount - minShowDataNumber);
for (int n = minShowDataNumber; n < maxCount; n++)
{
float xValue, yValue;

View File

@@ -84,7 +84,7 @@ namespace XCharts
{
obj = new GameObject();
obj.name = name;
obj.transform.parent = parent;
obj.transform.SetParent(parent);
obj.transform.localScale = Vector3.one;
obj.transform.localPosition = Vector3.zero;
}