20 lines
696 B
C#
20 lines
696 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace TRInventoryUpdatable
|
|
{
|
|
public class OilPickableItem : MonoBehaviour, IPickable
|
|
{
|
|
public void Pickup()
|
|
{
|
|
//Add to ring inventory the new item if it doesn't exist.
|
|
if (InventoryManager.GetInstance().oilOnRingInventory.activeSelf == false)
|
|
{
|
|
RingInventory.GetInstance().AddItemToKeysAndItemsInventory(InventoryManager.GetInstance().oilOnRingInventory.transform);
|
|
print("Is reconstructing inventory");
|
|
InventoryManager.GetInstance().oilOnRingInventory.SetActive(true);
|
|
}
|
|
}
|
|
}
|
|
} |