划船机暂存
This commit is contained in:
1 parent
1c73701e73
commit
c73545d912
164 files changed
+38281
-2181
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using UnityEngine;
|
||||
using ChartAndGraph;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GraphChartFeed : MonoBehaviour
|
||||
{
|
||||
@@ -15,22 +16,21 @@ public class GraphChartFeed : MonoBehaviour
|
||||
graph.DataSource.StartBatch();
|
||||
graph.DataSource.ClearCategory("Player 1");
|
||||
graph.DataSource.ClearAndMakeBezierCurve("Player 2");
|
||||
|
||||
for (int i = 0; i <10000; i++)
|
||||
|
||||
for (int i = 0; i < 10000; i++)
|
||||
{
|
||||
graph.DataSource.AddPointToCategory("Player 1",i*5,Random.value*10f + 20f);
|
||||
graph.DataSource.AddPointToCategory("Player 1", i * 5, Random.value * 10f + 20f);
|
||||
if (i == 0)
|
||||
graph.DataSource.SetCurveInitialPoint("Player 2",i*5, Random.value * 10f + 10f);
|
||||
graph.DataSource.SetCurveInitialPoint("Player 2", i * 5, Random.value * 10f + 10f);
|
||||
else
|
||||
graph.DataSource.AddLinearCurveToCategory("Player 2",
|
||||
new DoubleVector2(i*5 , Random.value * 10f + 10f));
|
||||
graph.DataSource.AddLinearCurveToCategory("Player 2",
|
||||
new DoubleVector2(i * 5, Random.value * 10f + 10f));
|
||||
}
|
||||
graph.DataSource.MakeCurveCategorySmooth("Player 2");
|
||||
graph.DataSource.EndBatch();
|
||||
}
|
||||
// StartCoroutine(ClearAll());
|
||||
// StartCoroutine(ClearAll());
|
||||
}
|
||||
|
||||
IEnumerator ClearAll()
|
||||
{
|
||||
yield return new WaitForSeconds(5f);
|
||||
|
||||
Reference in new issue
Block a user