24 lines
432 B
C#
24 lines
432 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class TipPanel : BasePanel
|
||
|
{
|
||
|
public Button btnSure;
|
||
|
|
||
|
public Text txtTip;
|
||
|
public override void Init()
|
||
|
{
|
||
|
btnSure.onClick.AddListener(() =>
|
||
|
{
|
||
|
UIManager.Instance.HidePanel<TipPanel>();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public void ChangeInfo(string str)
|
||
|
{
|
||
|
txtTip.text= str;
|
||
|
}
|
||
|
}
|