14 lines
258 B
C#
14 lines
258 B
C#
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
|
|||
|
|
public class ButtonWithText : Button {
|
|||
|
|
|
|||
|
|
[SerializeField]
|
|||
|
|
private Text textObject = default;
|
|||
|
|
|
|||
|
|
public string text {
|
|||
|
|
get{ return textObject.text; }
|
|||
|
|
set{ textObject.text = value; }
|
|||
|
|
}
|
|||
|
|
}
|