61 lines
1.2 KiB
C#
61 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
public class allPlants
|
|
{
|
|
public class plantPart
|
|
{
|
|
public string partName;
|
|
public string partIntro;
|
|
}
|
|
|
|
public string plantName;
|
|
public List<plantPart> plantParts;
|
|
}
|
|
|
|
public class UI_GraphicRextualPanel : BasePanel
|
|
{
|
|
public RawImage rawImage;
|
|
|
|
//¶¥²¿ÎÄ×Ö
|
|
public TextMeshProUGUI ToptextMeshProUGUI;
|
|
|
|
//ÄÚÈÝ
|
|
public TextMeshProUGUI ContentTextMeshProUGUI;
|
|
|
|
public allPlants allPlants;
|
|
|
|
public void Init()
|
|
{
|
|
allPlants = JsonManager.Instance.LoadData<allPlants>("plantsInfo");
|
|
}
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
}
|
|
public override void ShowMe()
|
|
{
|
|
base.ShowMe();
|
|
}
|
|
public override void HideMe()
|
|
{
|
|
base.HideMe();
|
|
}
|
|
protected override void OnClick(string btnName)
|
|
{
|
|
switch (btnName)
|
|
{
|
|
case "returnBtn":
|
|
GameManager.UIMgr.HidePanel<UI_GraphicRextualPanel>();
|
|
//LiveSceneManger.Instance.TipBtn.gameObject.SetActive(true);
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|