/************************************************/ /* */ /* Copyright (c) 2018 - 2021 monitor1394 */ /* https://github.com/monitor1394 */ /* */ /************************************************/ using UnityEngine; using UnityEngine.UI; namespace XCharts.Examples { [DisallowMultipleComponent] [ExecuteInEditMode] public class Example_Test : MonoBehaviour { LineChart chart; void Awake() { chart = gameObject.GetComponent(); var btnTrans = transform.parent.Find("Button"); if (btnTrans) { btnTrans.gameObject.GetComponent