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(); txtTitle = rtrfSelf.transform.Find("txtTitle").GetComponent(); txtTitle.text = LocalizationText.GetText("title_help"); txtMsg = rtrfSelf.Find("Sv").transform.Find("txtMsg").GetComponent(); } public void Open(string strtitle) { gameObject.SetActive(true); txtMsg.text = strtitle; } public void Close() { GameUIMgr.SOnCloseHelp(); gameObject.SetActive(false); } }