UsericonTip.cs 479 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. public class UsericonTip : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
  6. {
  7. public void OnPointerEnter(PointerEventData eventData)
  8. {
  9. ShowInfoTipManager.Instance.showTip(UserManager.Instance.NowChoose.name, false);
  10. }
  11. public void OnPointerExit(PointerEventData eventData)
  12. {
  13. ShowInfoTipManager.Instance.closeTip();
  14. }
  15. }