划船机暂存
This commit is contained in:
1 parent
1c73701e73
commit
c73545d912
164 files changed
+38281
-2181
No files matched your search
@@ -18,7 +18,7 @@ public partial class LargeDataFeed : MonoBehaviour, IComparer<DoubleVector2>
|
||||
void Start()
|
||||
{
|
||||
graph = GetComponent<GraphChartBase>();
|
||||
SetInitialData();
|
||||
//SetInitialData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -26,14 +26,15 @@ public partial class LargeDataFeed : MonoBehaviour, IComparer<DoubleVector2>
|
||||
/// </summary>
|
||||
void SetInitialData()
|
||||
{
|
||||
List<DoubleVector2> data = new List<DoubleVector2>(250000);
|
||||
List<DoubleVector2> data = new List<DoubleVector2>(75);
|
||||
double x = 0f;
|
||||
double y = 200f;
|
||||
for (int i = 0; i < 25000; i++) // initialize with random data
|
||||
double y = 20f;
|
||||
for (int i = 0; i < 75; i++) // initialize with random data
|
||||
{
|
||||
y = 20 + UnityEngine.Random.value*80;
|
||||
Debug.Log(y);
|
||||
x += 1;
|
||||
data.Add(new DoubleVector2(x, y));
|
||||
y += UnityEngine.Random.value * 10f - 5f;
|
||||
x += UnityEngine.Random.value;
|
||||
}
|
||||
SetData(data);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user