namespace UIWidgets
{
using UnityEngine;
using UnityEngine.UI;
///
/// DialogInfoBase.
///
[RequireComponent(typeof(Button))]
public class DialogButtonComponentBase : MonoBehaviour, IUpgradeable
{
///
/// The name.
///
[SerializeField]
public TextAdapter NameAdapter;
///
/// Sets button label.
///
/// Name.
public virtual void SetButtonName(string name)
{
NameAdapter.text = name;
}
///
/// Upgrade this instance.
///
public virtual void Upgrade()
{
}
#if UNITY_EDITOR
///
/// Validate this instance.
///
protected virtual void OnValidate()
{
Compatibility.Upgrade(this);
}
#endif
}
}