Files
HauntedBloodlines/Assets/Scripts/Pickups/PutLeverInFuseBox.cs
2025-05-29 22:31:40 +03:00

27 lines
609 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace InfallibleCode
{
public class PutLeverInFuseBox : MonoBehaviour, IInteractable
{
[SerializeField] private FuseBoxLeverPickUp fuseBoxLeverPickUp;
[SerializeField] private GameObject _lever;
public void PutLever()
{
if (fuseBoxLeverPickUp.hasLever)
{
_lever.SetActive(true);
fuseBoxLeverPickUp.hasLever = false;
}
}
public void Interact()
{
PutLever();
}
}
}