示例#1
0
文件: UIHighlight.cs 项目: cyv-cg/FE
    public void Deselect()
    {
        if (highlight != null)
        {
            Destroy(highlight.gameObject);
        }

        highlight      = null;
        highlightImage = null;

        OnDeselectAction?.Invoke();
    }
示例#2
0
文件: UIHighlight.cs 项目: cyv-cg/FE
    public void OnDeselect(BaseEventData eventData)
    {
        if (!Selectable.interactable)
        {
            return;
        }

        if (highlight != null)
        {
            Destroy(highlight.gameObject);
        }

        highlight      = null;
        highlightImage = null;

        OnDeselectAction?.Invoke();
    }