30 lines
642 B
C#
30 lines
642 B
C#
using DG.Tweening;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
public class RaceMaskScript : MonoBehaviour, IPointerEnterHandler,IPointerExitHandler
|
|
{
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
GetComponent<CanvasGroup>().DOFade(1, 0.5f);
|
|
}
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
GetComponent<CanvasGroup>().DOFade(0, 0.5f);
|
|
}
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|