forked from spr1ngd/UnityCodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBarChartExample.cs
More file actions
31 lines (26 loc) · 799 Bytes
/
Copy pathBarChartExample.cs
File metadata and controls
31 lines (26 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*=========================================
* Author: Administrator
* DateTime:2017/8/6 17:43:41
* Description:$safeprojectname$
==========================================*/
using UnityEngine;
using System.Collections.Generic;
using SpringGUI;
public class BarChartExample : MonoBehaviour
{
public BarChart BarChart = null;
private void Awake()
{
IList<float> bars = new List<float>(){ 0.6f,0.8f,0.1f,0.2f,0.5f};
IList<float>[] barss = new IList<float>[]
{
new List<float>(){0.1f,0.7f,0.2f},
new List<float>(){0.2f,0.4f,0.9f},
new List<float>(){0.5f,0.1f,0.2f},
new List<float>(){0.8f,0.2f,0.8f},
};
BarChart.Inject(barss);
BarChart.UnitEnable(true);
}
}