You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
431 B
24 lines
431 B
using UnityEngine; |
|
using UnityEngine.UI; |
|
|
|
namespace UIWidgets { |
|
/// <summary> |
|
/// Tab component. |
|
/// </summary> |
|
public class TabButtonComponent : MonoBehaviour { |
|
/// <summary> |
|
/// The name. |
|
/// </summary> |
|
[SerializeField] |
|
public Text Name; |
|
|
|
/// <summary> |
|
/// Sets the data. |
|
/// </summary> |
|
/// <param name="tab">Tab.</param> |
|
public virtual void SetButtonData(Tab tab) |
|
{ |
|
Name.text = tab.Name; |
|
} |
|
} |
|
} |