public virtual void ShowTooltip(TooltipTrigger trigger, Vector3 pos, string type) { if (trigger == null) { return; } if (panelsManager) { panelsManager.DisableAllPanels(); panelsManager.OpenPanelByName(type); } LastTrigger = trigger; transform.position = pos; gameObject.SetActive(true); }
public virtual void ShowTooltip(ItemCollector itemCol, Vector3 pos, string type) { if (itemCol == null) { return; } if (panelsManager) { panelsManager.DisableAllPanels(); panelsManager.OpenPanelByName(type); } Item = itemCol; transform.position = pos; gameObject.SetActive(true); }