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

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

        instance = this;
    }
Example #3
0
 void Start()
 {
     tooltip = TooltipBehavior.instance;
 }