2025-09-24 11:24:38 +05:00

32 lines
555 B
C#

namespace TPSBR.UI
{
using TMPro;
public class UIJokeDialogView : UIButtonDialogView
{
// PUBLIC MEMBERS
public UIButton JokeButton01;
public TextMeshProUGUI JokeButton01Text;
public UIButton JokeButton02;
public TextMeshProUGUI JokeButton02Text;
// PUBLIC METHODS
public void OnJokeButtonHover(int index)
{
JokeButton01.SetActive(index != 0);
JokeButton02.SetActive(index != 1);
}
// UIView INTERFACE
protected override void OnInitialize()
{
base.OnInitialize();
OnJokeButtonHover(0);
}
}
}