using UnityEngine.UI; using UnityEngine; using System; public class OutlineColor : Outline { [SerializeField][HideInInspector] QualityTextColType m_ColorType = QualityTextColType.None; public QualityTextColType colorType { get { return m_ColorType; } set { if (m_ColorType != value) { m_ColorType = value; this.effectColor = UIHelper.GetUIOutlineColor(value); } } } [SerializeField][HideInInspector] Vector2 m_EffectDistanceEx = new Vector2(1.5f, -1.5f); public Vector2 effectDistanceEx { get { return m_EffectDistanceEx; } set { if (m_EffectDistanceEx != value) { m_EffectDistanceEx = value; effectDistance = value; } } } protected override void Awake() { this.effectDistance = m_EffectDistanceEx; this.effectColor = UIHelper.GetUIOutlineColor(colorType); } }