Files
JJBB/Assets/Project/Script/GUI/Base/UIItemSelect.cs

39 lines
640 B
C#
Raw Normal View History

2024-08-23 15:49:34 +08:00
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using System.Collections;
using System;
public class UIItemSelect : UIItemBase, IPointerClickHandler
{
public GameObject _SelectGO; // 用于显示当前选中
#region select
public virtual bool IsCanSelect()
{
return true;
}
public virtual void Selected()
{
if (_SelectGO != null)
{
_SelectGO.SetActive(true);
}
}
public virtual void UnSelected()
{
if (_SelectGO != null)
{
_SelectGO.SetActive(false);
}
}
#endregion
}