작업 조건 분석 기능 개발
This commit is contained in:
16
Assets/Chart And Graph/Tutorials/Pie/PieChartFeed.cs
Normal file
16
Assets/Chart And Graph/Tutorials/Pie/PieChartFeed.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using ChartAndGraph;
|
||||
public class PieChartFeed : MonoBehaviour
|
||||
{
|
||||
void Start ()
|
||||
{
|
||||
PieChart pie = GetComponent<PieChart>();
|
||||
if (pie != null)
|
||||
{
|
||||
pie.DataSource.SlideValue("Player 1", 50, 10f);
|
||||
pie.DataSource.SetValue("Player 2", Random.value * 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user