namespace UIWidgets
{
using UIWidgets.l10n;
using UnityEngine;
///
/// Tab component.
///
public class TabButtonComponentBase : MonoBehaviour, IUpgradeable
{
///
/// The name.
///
[SerializeField]
public TextAdapter NameAdapter;
///
/// Sets the data.
///
/// Tab.
public virtual void SetButtonData(Tab tab)
{
NameAdapter.text = Localization.GetTranslation(tab.Name);
}
///
/// Upgrade this instance.
///
public virtual void Upgrade()
{
}
#if UNITY_EDITOR
///
/// Validate this instance.
///
protected virtual void OnValidate()
{
Compatibility.Upgrade(this);
}
#endif
}
}