コード例 #1
0
    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);
    }
コード例 #2
0
    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);
    }