Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.EventSystems;
- using UnityEngine.UI;
- public class ButtonCode : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
- {
- public UnityEngine.UI.Text thisText;
- public void OnPointerEnter(PointerEventData eventData)
- {
- thisText.color = Color.yellow;
- }
- public void OnPointerExit(PointerEventData eventData)
- {
- thisText.color = Color.white;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement