Example #1
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        ITooltipConstruction tooltipConstruction = buildingPrefab.GetComponent <ITooltipConstruction>();

        if (tooltipConstruction == null)
        {
            Debug.Log("interface null");
            return;
        }
        Tooltip_Manager.ShowTooltip(tooltipConstruction.GetTooltipModel());
    }
Example #2
0
 void Awake()
 {
     instance = this;
     instatiatePrefabs();
 }
Example #3
0
 public void OnPointerExit(PointerEventData eventData)
 {
     Tooltip_Manager.HideToolTip();
 }