27 lines
609 B
C#
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();
|
|
}
|
|
}
|
|
}
|