Files
peng-zhihui 06ec2e469e Released.
2022-03-13 06:31:07 +08:00

30 lines
634 B
C#

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