Example #1
0
    public void OpenStorageItem()
    {
        if (LinkedItem == null)
        {
            Debug.Log("There is no linked item");
            return;
        }

        try
        {
            StorageItem si = (StorageItem)LinkedItem;
            if (si != null)
            {
                si.Use(null);
            }
        }
        catch (Exception e) { Debug.Log("The linked item is not a storage item"); }
    }