void Start() { if (pieChartMeshController == null) { pieChartMeshController = gameObject.AddComponent <PieChartMeshController>(); } pieChartMeshController.parent = parentTransform.gameObject; //pieChartMeshController.onPointerEnter.AddListener(onPointerClick); if (pieChartMeshController == null) { Debug.LogError("Drag The PieChartMeshController to Scene as PieChartMeshController is null."); return; } if (mainMaterial != null) { pieChartMeshController.SetMatrialOfPie(mainMaterial); } pieChartMeshController.SetData(Data); pieChartMeshController.SetColor(customColors); pieChartMeshController.SetDescription(dataDescription.ToArray()); pieChartMeshController.GenerateChart(segments, animationType, justCreateThePie); }