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.
 
 
 
 
 
 

38 lines
850 B

using UnityEngine;
using TMPro;
using IVDataFormat;
public class IVPpHelp : MonoBehaviour
{
protected RectTransform rtrfSelf;
protected TextMeshProUGUI txtTitle;
protected TextMeshProUGUI txtMsg;
public bool IsOpen()
{
return gameObject.activeSelf;
}
public void Init()
{
rtrfSelf = GetComponent<RectTransform>();
txtTitle = rtrfSelf.transform.Find("txtTitle").GetComponent<TextMeshProUGUI>();
txtTitle.text = LocalizationText.GetText("title_help");
txtMsg = rtrfSelf.Find("Sv").transform.Find("txtMsg").GetComponent<TextMeshProUGUI>();
}
public void Open(string strtitle)
{
gameObject.SetActive(true);
txtMsg.text = strtitle;
}
public void Close()
{
GameUIMgr.SOnCloseHelp();
gameObject.SetActive(false);
}
}