using System.Collections; using System.Collections.Generic; using UnityEngine; using TRInventoryUpdatable; namespace InfallibleCode { public class OilDoor : MonoBehaviour, IInteractable { public void Interact() { if (InventoryManager.GetInstance().oilOnRingInventory.activeSelf) { //Play animation for oil. //Set Active false from inventory. RingInventory.GetInstance().RemoveItemByNameToKeysAndItemsInventory("Oil"); print("Used oil"); gameObject.SetActive(false); } else { //UIManager.GetInstance().DisplayMessageOnScreen("The lock is rusty"); } } } }