Files
2025-05-29 22:31:40 +03:00

26 lines
758 B
C#

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");
}
}
}
}