1234567891011121314151617181920212223242526272829 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.EventSystems;
- public class TipInfoMsgManager : MonoBehaviour,IPointerEnterHandler,IPointerExitHandler
- {
- public string msg;
- public void OnPointerEnter(PointerEventData eventData)
- {
- if(ShowInfoTipManager.Instance)
- ShowInfoTipManager.Instance.showTip(msg,false);
- }
- public void OnPointerExit(PointerEventData eventData)
- {
- if (ShowInfoTipManager.Instance)
- ShowInfoTipManager.Instance.closeTip();
- }
- private void OnDisable()
- {
- if(ShowInfoTipManager.Instance)
- ShowInfoTipManager.Instance.closeTip();
- }
- }
|