public void OnDestroy()
 {
     if (lastAction != null)
     {
         OnAfterResizeMultiplierChanged -= lastAction;
         lastAction = null;
     }
 }
        public void OnEnable()
        {
            // Update the font size if the multiplier is not set to 1
            UpdateTransform();

            // Bind to the resize event
            if (lastAction == null)
            {
                lastAction = new ResizeMultiplierChanged(UpdateTransform);
                OnAfterResizeMultiplierChanged += lastAction;
            }
        }
        private void OnEnable()
        {
            // Update the font size if the multiplier is not set to 1
            UpdateLabelSize();

            // Bind to the resize event
            if (lastAction == null)
            {
                lastAction = new ResizeMultiplierChanged(UpdateLabelSize);
                OnAfterResizeMultiplierChanged += lastAction;
            }
        }