From 151a2ed01f8ce360e96691ef4a5f8a0d138b6c69 Mon Sep 17 00:00:00 2001 From: zhengzhipeng Date: Thu, 17 Aug 2023 14:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DChart=E5=9C=A8=E7=89=B9?= =?UTF-8?q?=E5=AE=9A=E6=83=85=E5=86=B5=E4=B8=8B=E9=94=80=E6=AF=81=E6=97=B6?= =?UTF-8?q?UGUI=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/Object/ChartLabel.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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;