// protected override void Start() // { // PieData = new Pies(new List<PieData>() // { // new PieData(0 ,Color.cyan), // new PieData(100,Color.green), // }); // } public void SetPie(float LostPercent, float WinPercent, Color Lost, Color Win) { PieData = new Pies(new List <PieData>() { new PieData(LostPercent, Lost), new PieData(WinPercent, Win), }); }
protected override void Awake() { PieData = new Pies(new List <PieData>() { new PieData(5, Color.white), new PieData(5, Color.magenta), new PieData(5, Color.red), new PieData(80, Color.blue), new PieData(5, Color.black), //new PieData(5 ,Color.cyan), //new PieData(7 ,Color.yellow), }); }