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.
25 lines
499 B
25 lines
499 B
2 years ago
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
namespace UIWidgets {
|
||
|
/// <summary>
|
||
|
/// DialogButtonComponent.
|
||
|
/// Control how button name will be displayed.
|
||
|
/// </summary>
|
||
|
public class DialogButtonComponent : MonoBehaviour {
|
||
|
/// <summary>
|
||
|
/// The name.
|
||
|
/// </summary>
|
||
|
[SerializeField]
|
||
|
public Text Name;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Sets the button name.
|
||
|
/// </summary>
|
||
|
/// <param name="name">Name.</param>
|
||
|
public virtual void SetButtonName(string name)
|
||
|
{
|
||
|
Name.text = name;
|
||
|
}
|
||
|
}
|
||
|
}
|