38 lines
645 B
C#
38 lines
645 B
C#
using UnityEngine.UI;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class ItemTips : BasePanel
|
|
{
|
|
public void Init(string Item)
|
|
{
|
|
GetControl<TextMeshProUGUI>("ItemText").text = Item;
|
|
GetControl<Image>("Bg").rectTransform.sizeDelta = new Vector2(120, 36);
|
|
HideMe();
|
|
}
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
public override void ShowMe()
|
|
{
|
|
|
|
}
|
|
|
|
public override void HideMe()
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnClick(string btnName)
|
|
{
|
|
|
|
switch (btnName)
|
|
{
|
|
case "":
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
} |