mirror of
https://github.com/peng-zhihui/ElectronBot.git
synced 2026-10-21 22:56:26 +08:00
29 lines
572 B
C#
29 lines
572 B
C#
namespace UIWidgets
|
|
{
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// Tab component.
|
|
/// </summary>
|
|
public class TabButtonComponent : TabButtonComponentBase
|
|
{
|
|
/// <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
|
|
}
|
|
}
|
|
} |