public void OnPointerEnter(PointerEventData eventData) { ITooltipConstruction tooltipConstruction = buildingPrefab.GetComponent <ITooltipConstruction>(); if (tooltipConstruction == null) { Debug.Log("interface null"); return; } Tooltip_Manager.ShowTooltip(tooltipConstruction.GetTooltipModel()); }
void Awake() { instance = this; instatiatePrefabs(); }
public void OnPointerExit(PointerEventData eventData) { Tooltip_Manager.HideToolTip(); }