using DG.Tweening; using Monpl.Utils.Extensions; using UnityEngine; using UnityEngine.UI; namespace Monpl.UI { public enum AnimationType { NonTween, Tween, Jelly, } public class ScaleButton : ButtonAniBase { [SerializeField] private float pressingScale = 0.9f; [SerializeField] private AnimationType animationType = AnimationType.NonTween; public RectTransform AnimationObject { get { Init(); return _animationObject; } } public float PressingScale { get => pressingScale; set => pressingScale = value; } private Button _button; private RectTransform _animationObject; private void Init() { _animationObject = _animationObject ? _animationObject : transform.FindRecursively("AnimationObject") as RectTransform; _button = GetComponent