上海虹口龙之梦项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
431 B

using DG.Tweening;
using UnityEngine;
using UnityEngine.EventSystems;
public class MainButtonControl : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public void OnPointerEnter(PointerEventData eventData)
{
transform.DOScale(new Vector3(1.2f, 1.2f, 1.2f), 0.1f);
}
public void OnPointerExit(PointerEventData eventData)
{
transform.DOScale(new Vector3(1f, 1f, 1f), 0.1f);
}
}