21 lines
509 B
C#
21 lines
509 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
public class SelectBt : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
|
|
{
|
|
public Sprite defaults;
|
|
public Sprite hight;
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
GetComponent<Image>().sprite = hight;
|
|
}
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
GetComponent<Image>().sprite = defaults;
|
|
}
|
|
}
|