namespace UIWidgets { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using UIWidgets.l10n; using UIWidgets.Styles; using UnityEngine; using UnityEngine.UI; /// /// Base class for the Dialogs. /// public abstract class DialogBase : MonoBehaviour, ITemplatable, IStylable, IUpgradeable, IHideable { #pragma warning disable 0649 [SerializeField] [HideInInspector] [Obsolete("Replaced with buttonsTemplates")] Button defaultButton; #pragma warning restore 0649 /// /// Gets or sets the default button. /// /// The default button. [Obsolete("Replaced with ButtonsTemplates")] public Button DefaultButton { get { Upgrade(); return defaultButton; } set { Upgrade(); var buttons = new List