Exemple #1
0
    void Start()
    {
        tooltip = TooltipBehavior.instance;

        if (item == null)
        {
            icon.sprite = defaultIcon;
        }
    }
    void Awake()
    {
        if (instance)
        {
            Debug.LogWarning("Another instance of tooltip behavior already exists");
            return;
        }

        instance = this;
    }
 void Start()
 {
     tooltip = TooltipBehavior.instance;
 }