mirror of
https://github.com/lllyasviel/YGOProUnity_V2.git
synced 2026-10-19 07:01:49 +08:00
28 lines
635 B
C#
28 lines
635 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class UIselectableListItem : MonoBehaviour {
|
|
public GameObject selectedObject;
|
|
public UILabel lable;
|
|
public UIButton btn;
|
|
public UIselectableList List;
|
|
public void goList()
|
|
{
|
|
if (List!=null)
|
|
{
|
|
if (List.selectedString == lable.text)
|
|
{
|
|
if (List.selectedAction != null)
|
|
{
|
|
List.selectedAction();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
List.selectedString = lable.text;
|
|
}
|
|
List.mark();
|
|
}
|
|
}
|
|
}
|