Files
YGOProUnity_V2/Assets/transUI/UIselectableListItem.cs
lllyasviel 72f9f431f4 first
2017-05-14 16:15:52 +08:00

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();
}
}
}