diff --git a/Runtime/Internal/Object/ChartLabel.cs b/Runtime/Internal/Object/ChartLabel.cs index 7464d27e..a384543a 100644 --- a/Runtime/Internal/Object/ChartLabel.cs +++ b/Runtime/Internal/Object/ChartLabel.cs @@ -1,4 +1,4 @@ -using UnityEngine; +using UnityEngine; using UnityEngine.UI; namespace XCharts.Runtime @@ -55,17 +55,10 @@ namespace XCharts.Runtime protected override void Awake() { - base.Awake(); raycastTarget = false; SetActive(true); } - protected override void OnDestroy() - { - base.OnDestroy(); - GraphicRegistry.UnregisterGraphicForCanvas(canvas, this); - } - public void SetTextPadding(TextPadding padding) { m_PaddingLeft = padding.left; @@ -202,11 +195,6 @@ namespace XCharts.Runtime return transform.localPosition; } - public override bool IsActive() - { - return m_Active; - } - public void SetActive(bool flag) { m_Active = flag;