17 lines
386 B
C#
Raw Normal View History

2025-09-08 14:51:28 +08:00
#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);
}
}
}