Files
UltimateFishing2020/Assets/Scripts/Assembly-CSharp/UpperLink.cs
2026-03-04 10:03:45 +08:00

37 lines
552 B
C#

using UnityEngine;
using UnityEngine.UI;
public class UpperLink : MonoBehaviour
{
public Text nameText;
public int categoryIndex;
public string subCategory;
public bool useSelected = true;
private void Start()
{
}
private void Update()
{
}
public void SelectByClick()
{
if (useSelected)
{
if (subCategory == "")
{
Object.FindObjectOfType<ShopManager>().ShowCategoryAndSubCategory(categoryIndex);
}
else
{
StartCoroutine(Object.FindObjectOfType<ShopManager>().ShowItemsFromSort(subCategory));
}
}
}
}