namespace UIWidgets { using UnityEngine; using UnityEngine.UI; /// /// DialogButtonComponent. /// Control how button name will be displayed. /// public class DialogButtonComponent : DialogButtonComponentBase { /// /// The name. /// [SerializeField] [HideInInspector] [System.Obsolete("Replaced with NameAdapter.")] public Text Name; /// /// Upgrade this instance. /// public override void Upgrade() { #pragma warning disable 0612, 0618 Utilities.GetOrAddComponent(Name, ref NameAdapter); #pragma warning restore 0612, 0618 } } }